Updated copy of error messages for Tips & Donations suggested amount (#17696)

refs https://github.com/TryGhost/Product/issues/3695
This commit is contained in:
Sag 2023-08-11 16:11:04 +02:00 committed by GitHub
parent 1ebdac3997
commit 37bf804cf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -68,12 +68,12 @@ export default class TipsAndDonations extends Component {
const minAmount = minimumAmountForCurrency(currency); const minAmount = minimumAmountForCurrency(currency);
if (amountInCents !== 0 && amountInCents < (minAmount * 100)) { if (amountInCents !== 0 && amountInCents < (minAmount * 100)) {
this.tipsAndDonationsError = `The suggested amount cannot be less than ${symbol}${minAmount}.`; this.tipsAndDonationsError = `Non-zero amount must be at least ${symbol}${minAmount}.`;
return; return;
} }
if (amountInCents !== 0 && amountInCents > (MAX_AMOUNT * 100)) { if (amountInCents !== 0 && amountInCents > (MAX_AMOUNT * 100)) {
this.tipsAndDonationsError = `The suggested amount cannot be more than ${symbol}${MAX_AMOUNT}.`; this.tipsAndDonationsError = `Suggested amount cannot be more than ${symbol}${MAX_AMOUNT}.`;
return; return;
} }