diff options
author | Blaster4385 <[email protected]> | 2022-08-18 21:05:35 +0530 |
---|---|---|
committer | Blaster4385 <[email protected]> | 2022-08-18 21:05:35 +0530 |
commit | 945a16740a36b616f7f2154ffe544f2d2fdbfabd (patch) | |
tree | 6b9a140c5ac8b9d2cc35ff554f2ac2f0e3218245 /client/src/pages | |
parent | 1d0a79ee10a456d9c970713f2952c3319cac4f8a (diff) |
This is what happens when you hard code 10+ validators
Diffstat (limited to 'client/src/pages')
-rw-r--r-- | client/src/pages/Enrollment/Enrollment.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/pages/Enrollment/Enrollment.jsx b/client/src/pages/Enrollment/Enrollment.jsx index cda04df..59211f9 100644 --- a/client/src/pages/Enrollment/Enrollment.jsx +++ b/client/src/pages/Enrollment/Enrollment.jsx @@ -58,9 +58,9 @@ const Enrollment = () => { setPage(page + 1) } } else if (page === 2) { - if (userData.address.state.name === '') { + if (!userData.address.state.name) { toast.error(t('PLEASE_SELECT_YOUR_STATE')) - } else if (userData.address.district.name === '') { + } else if (!userData.address.district.name) { toast.error(t('PLEASE_SELECT_YOUR_DISTRICT')) } else if (userData.address.village === '') { toast.error(t('PLEASE_ENTER_YOUR_VILLAGE')) |