From f386a92f987d6f9e903d85ec47cd68265692392f Mon Sep 17 00:00:00 2001 From: Sag Date: Mon, 7 Aug 2023 18:19:19 +0200 Subject: [PATCH] Fixed preset amount for donations (#17617) refs https://github.com/TryGhost/Product/issues/3666 --- ghost/payments/lib/PaymentsService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghost/payments/lib/PaymentsService.js b/ghost/payments/lib/PaymentsService.js index f268fc5d65..c94f82eacb 100644 --- a/ghost/payments/lib/PaymentsService.js +++ b/ghost/payments/lib/PaymentsService.js @@ -339,7 +339,7 @@ class PaymentsService { async createPriceForDonations({currency, amount, nickname}) { const product = await this.getProductForDonations({name: nickname}); - const preset = amount ? amount : null; + const preset = amount ? amount : undefined; // Create the price in Stripe const price = await this.stripeAPIService.createPrice({