diff options
| author | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-02-09 10:19:28 +0700 |
|---|---|---|
| committer | HATEC\SPVDEV001 <tri.susilo@altama.co.id> | 2024-02-09 10:19:28 +0700 |
| commit | 2e38ec15d42201c26c48f9bcf856750204db0582 (patch) | |
| tree | 3fb3d1c0f392c355076ae70dc6fc2b6827a0cd33 /src/lib/form/components/KunjunganService.jsx | |
| parent | 76e3eec8db414307cea6b11e3ebb461aed8e1e26 (diff) | |
fixing error form form sales
Diffstat (limited to 'src/lib/form/components/KunjunganService.jsx')
| -rw-r--r-- | src/lib/form/components/KunjunganService.jsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/form/components/KunjunganService.jsx b/src/lib/form/components/KunjunganService.jsx index 0e1d1ab3..5720d14e 100644 --- a/src/lib/form/components/KunjunganService.jsx +++ b/src/lib/form/components/KunjunganService.jsx @@ -33,7 +33,7 @@ const CreateKunjunganService = () => { const recaptchaRef = useRef(null) useEffect(() => { - if(!auth) { + if(auth == false) { router.push('/login') } const loadCities = async () => { @@ -42,7 +42,7 @@ const CreateKunjunganService = () => { setCities(dataCities) } loadCities() - }, []) + }, [auth]) const onSubmitHandler = async (values) => { const recaptchaValue = recaptchaRef.current.getValue() |
