From a49c7aefc99a1e0584cb0b3fb08d028b65dc35d9 Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Sun, 21 Aug 2022 11:55:25 +0530
Subject: Update fixes

---
 client/src/pages/Update/Biometric/Biometric.jsx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

(limited to 'client/src/pages/Update/Biometric/Biometric.jsx')

diff --git a/client/src/pages/Update/Biometric/Biometric.jsx b/client/src/pages/Update/Biometric/Biometric.jsx
index 6737ed9..275df89 100644
--- a/client/src/pages/Update/Biometric/Biometric.jsx
+++ b/client/src/pages/Update/Biometric/Biometric.jsx
@@ -28,14 +28,14 @@ const Biometric = () => {
     if (!userData.photo) {
       setUserData({ ...userData, photo: oriUserData.photo })
     }
-    setPage(page - 1)
+    setPage(4) // DUMMY VALUE 4
   }
 
   const handleSubmit = () => {
     if (!userData.photo) {
       setUserData({ ...userData, photo: oriUserData.photo })
     }
-    setPage(page + 1)
+    setPage(4)
   }
 
   const conditionalButton = () => {
@@ -51,14 +51,14 @@ const Biometric = () => {
         return (
           <>
             <SubmitButton onClick={() => setPage(4)} />
-            <BackButton onClick={() => setPage(page - 1)} />
+            <BackButton onClick={() => setPage(4)} />
           </>
         )
       case 2:
         return (
           <>
             <SubmitButton onClick={() => setPage(4)} />
-            <BackButton onClick={() => setPage(page - 1)} />
+            <BackButton onClick={() => setPage(4)} />
           </>
         )
     }
-- 
cgit 

