mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-28 05:37:34 +03:00
Updated copy of error messages for Tips & Donations suggested amount (#17696)
refs https://github.com/TryGhost/Product/issues/3695
This commit is contained in:
parent
1ebdac3997
commit
37bf804cf5
@ -68,12 +68,12 @@ export default class TipsAndDonations extends Component {
|
||||
const minAmount = minimumAmountForCurrency(currency);
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user