From 6b85ebee8986b982e05d49c8f1a326deb3e08bae Mon Sep 17 00:00:00 2001
From: rohan09-raj <rajrohan1914@gmail.com>
Date: Thu, 18 Aug 2022 11:43:03 +0530
Subject: Fixed components

---
 client/src/components/Gender/Gender.jsx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'client/src/components/Gender/Gender.jsx')

diff --git a/client/src/components/Gender/Gender.jsx b/client/src/components/Gender/Gender.jsx
index 98a1b48..0079fc3 100644
--- a/client/src/components/Gender/Gender.jsx
+++ b/client/src/components/Gender/Gender.jsx
@@ -17,7 +17,7 @@ const Gender = ({ formData, setFormData }) => {
         id="male"
         name="gender"
         title={t('MALE')}
-        value={formData.gender}
+        value={formData?.gender}
         readOnly={editable}
         onChange={() => {
           setFormData({
@@ -30,7 +30,7 @@ const Gender = ({ formData, setFormData }) => {
       <LabelCard
         id="female"
         name="gender"
-        value={formData.gender}
+        value={formData?.gender}
         title={t('FEMALE')}
         readOnly={editable}
         onChange={() => {
@@ -44,7 +44,7 @@ const Gender = ({ formData, setFormData }) => {
       <LabelCard
         id="trans"
         name="gender"
-        value={formData.gender}
+        value={formData?.gender}
         title={t('OTHER')}
         readOnly={editable}
         onChange={() => {
-- 
cgit 

