From a50113c7dfc00c885fdf3ebeb2b0b847fe47d2d4 Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Thu, 13 Feb 2025 15:51:38 -0500 Subject: [PATCH] Update the AcceptDonation flag correctly when adding or removing the stripe account --- .../Contents/EventHandlers/StripeAccountConfiguredHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/Web/Features/Contents/EventHandlers/StripeAccountConfiguredHandler.cs b/backend/src/Web/Features/Contents/EventHandlers/StripeAccountConfiguredHandler.cs index af735c7..43e604c 100644 --- a/backend/src/Web/Features/Contents/EventHandlers/StripeAccountConfiguredHandler.cs +++ b/backend/src/Web/Features/Contents/EventHandlers/StripeAccountConfiguredHandler.cs @@ -28,7 +28,7 @@ public class StripeAccountConfiguredHandler( return; } - creator.AcceptDonation = true; + creator.AcceptDonation = !string.IsNullOrWhiteSpace(eventModel.StripeAccountId); var rows = await dbContext.SaveChangesAsync(ct);