summaryrefslogtreecommitdiff
path: root/src/lib/form/components/PembayaranTempo.jsx
diff options
context:
space:
mode:
authorHATEC\SPVDEV001 <tri.susilo@altama.co.id>2024-02-09 10:19:28 +0700
committerHATEC\SPVDEV001 <tri.susilo@altama.co.id>2024-02-09 10:19:28 +0700
commit2e38ec15d42201c26c48f9bcf856750204db0582 (patch)
tree3fb3d1c0f392c355076ae70dc6fc2b6827a0cd33 /src/lib/form/components/PembayaranTempo.jsx
parent76e3eec8db414307cea6b11e3ebb461aed8e1e26 (diff)
fixing error form form sales
Diffstat (limited to 'src/lib/form/components/PembayaranTempo.jsx')
-rw-r--r--src/lib/form/components/PembayaranTempo.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/form/components/PembayaranTempo.jsx b/src/lib/form/components/PembayaranTempo.jsx
index 73ceee49..9591a0b0 100644
--- a/src/lib/form/components/PembayaranTempo.jsx
+++ b/src/lib/form/components/PembayaranTempo.jsx
@@ -29,10 +29,10 @@ const PembayaranTempo = () => {
const auth = useAuth()
useEffect(() => {
- if(!auth) {
+ if(auth) {
router.push('/login')
}
- },[])
+ },[auth])
const onSubmitHandler = async (values) => {
const recaptchaValue = recaptchaRef.current.getValue()