From 3cd6718384fa5fa172d026aa932245d097312688 Mon Sep 17 00:00:00 2001 From: Emma Alexia Date: Sat, 19 Apr 2025 08:25:43 -0400 Subject: [PATCH] Fix inverted condition with refunds (#3539) Signed-off-by: Emma Alexia --- apps/labrinth/src/routes/internal/billing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/labrinth/src/routes/internal/billing.rs b/apps/labrinth/src/routes/internal/billing.rs index 7ef810286..8eefe0f26 100644 --- a/apps/labrinth/src/routes/internal/billing.rs +++ b/apps/labrinth/src/routes/internal/billing.rs @@ -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 {