From 64122b1dc30e805d2d9f9c6ae2e6a4f2a5a18771 Mon Sep 17 00:00:00 2001 From: Princi Vershwal Date: Tue, 26 Mar 2024 20:53:08 +0530 Subject: [PATCH] ENG-794 Fixed validation for offer percentage amount (#19927) --- .../src/components/settings/growth/offers/AddOfferModal.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx b/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx index a467abe2aa..a180dfcff5 100644 --- a/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx +++ b/apps/admin-x-settings/src/components/settings/growth/offers/AddOfferModal.tsx @@ -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%.'; }