summaryrefslogtreecommitdiff
path: root/src/lib/form/components/SuratDukungan.jsx
diff options
context:
space:
mode:
authorit-fixcomart <it@fixcomart.co.id>2024-06-21 11:01:35 +0700
committerit-fixcomart <it@fixcomart.co.id>2024-06-21 11:01:35 +0700
commit220190db66bcc1c6db78180c593f21e9cf8f363c (patch)
tree1517faa9636a6b3b2cc8d468a57b1fe476c229d7 /src/lib/form/components/SuratDukungan.jsx
parent208b234320b6c42491a4e87a1c3db3abab9c1715 (diff)
parent1cf754b4d8da1aa28700ffc3dad67081f6daf9a5 (diff)
Merge branch 'promotion-program' into feature/all-promotion
Diffstat (limited to 'src/lib/form/components/SuratDukungan.jsx')
-rw-r--r--src/lib/form/components/SuratDukungan.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/form/components/SuratDukungan.jsx b/src/lib/form/components/SuratDukungan.jsx
index 0b3b650e..31e7ee83 100644
--- a/src/lib/form/components/SuratDukungan.jsx
+++ b/src/lib/form/components/SuratDukungan.jsx
@@ -33,7 +33,7 @@ const CreateSuratDukungan = () => {
const auth = useAuth()
useEffect(() => {
- if(!auth) {
+ if(auth == false) {
router.push('/login')
}
const loadCities = async () => {
@@ -45,7 +45,7 @@ const CreateSuratDukungan = () => {
setCities(dataCities);
};
loadCities();
- }, []);
+ }, [auth]);
const onSubmitHandler = async (values) => {
const recaptchaValue = recaptchaRef.current.getValue();