From da56108f1dc51dbde756dd0f4cd3c96452aa0d18 Mon Sep 17 00:00:00 2001
From: Blaster4385 <venkateshchaturvedi12@gmail.com>
Date: Sat, 20 Aug 2022 21:54:49 +0530
Subject: IDK

---
 client/src/pages/Update/FormOne/FormOne.jsx | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

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

diff --git a/client/src/pages/Update/FormOne/FormOne.jsx b/client/src/pages/Update/FormOne/FormOne.jsx
index e0b1ca0..d5fb8ba 100644
--- a/client/src/pages/Update/FormOne/FormOne.jsx
+++ b/client/src/pages/Update/FormOne/FormOne.jsx
@@ -18,7 +18,17 @@ const FormOne = () => {
   }
 
   useEffect(() => {
-    document.getElementById(`${userData.gender}`).checked = 'checked'
+    switch (userData.gender) {
+      case 'Male':
+        document.getElementById('male').checked = 'checked'
+        break
+      case 'Female':
+        document.getElementById('female').checked = 'checked'
+        break
+      case 'Other':
+        document.getElementById('other').checked = 'checked'
+        break
+    }
   }, [userData.gender])
 
   return (
-- 
cgit 

