Fixed preset amount for donations (#17617)

refs https://github.com/TryGhost/Product/issues/3666
This commit is contained in:
Sag 2023-08-07 18:19:19 +02:00 committed by GitHub
parent 3254b8e149
commit f386a92f98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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({