mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
ENG-794 Fixed validation for offer percentage amount (#19927)
This commit is contained in:
parent
ec25aed06f
commit
64122b1dc3
1 changed files with 1 additions and 1 deletions
|
@ -403,7 +403,7 @@ const AddOfferModal = () => {
|
||||||
newErrors.amount = 'Enter an amount greater than 0.';
|
newErrors.amount = 'Enter an amount greater than 0.';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (formState.type === 'percent' && (formState.percentAmount < 0 || formState.percentAmount >= 100)) {
|
if (formState.type === 'percent' && (formState.percentAmount < 0 || formState.percentAmount > 100)) {
|
||||||
newErrors.amount = 'Amount must be between 0 and 100%.';
|
newErrors.amount = 'Amount must be between 0 and 100%.';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue