Fix inverted condition with refunds (#3539)

Signed-off-by: Emma Alexia <emma@modrinth.com>
This commit is contained in:
Emma Alexia 2025-04-19 08:25:43 -04:00 committed by GitHub
parent 1903980b71
commit 3cd6718384
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,7 +206,7 @@ pub async fn refund_charge(
));
}
let (id, net) = if refund_amount != 0 {
let (id, net) = if refund_amount == 0 {
(None, None)
} else {
match charge.payment_platform {