ENG-794 Fixed validation for offer percentage amount (#19927)

This commit is contained in:
Princi Vershwal 2024-03-26 20:53:08 +05:30 committed by GitHub
parent ec25aed06f
commit 64122b1dc3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -403,7 +403,7 @@ const AddOfferModal = () => {
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%.';
}