diff --git a/src/components/LearnerModal.tsx b/src/components/LearnerModal.tsx
index b84ea790..070ee4f6 100644
--- a/src/components/LearnerModal.tsx
+++ b/src/components/LearnerModal.tsx
@@ -104,7 +104,7 @@ const LearnerModal = ({
motherName,
subProgram,
grade,
- accesstoWhatsApp,
+ accessToWhatsApp,
program,
}: {
userId?: string;
@@ -114,12 +114,12 @@ const LearnerModal = ({
userName?: string;
contactNumber?: any;
enrollmentNumber?: any;
- fatherName?: any;
- motherName?: any;
- subProgram?: any;
- grade?: any;
- accesstoWhatsApp?: any;
- program? :any;
+ fatherName?: string;
+ motherName?: string;
+ subProgram?: string;
+ grade?: number;
+ accessToWhatsApp?: string;
+ program? :string;
}) => {
const { t } = useTranslation();
@@ -255,7 +255,7 @@ const LearnerModal = ({
- {accesstoWhatsApp || '-'}
+ {accessToWhatsApp || '-'}
diff --git a/src/components/LearnersListItem.tsx b/src/components/LearnersListItem.tsx
index 10f53619..4615341d 100644
--- a/src/components/LearnersListItem.tsx
+++ b/src/components/LearnersListItem.tsx
@@ -92,7 +92,7 @@ const LearnersListItem: React.FC = ({
const [subProgram, setSubProgramName]=React.useState();
const[program , setProgram]=React.useState();
const [grade, setGradeName]=React.useState()
- const [accesstoWhatsApp, setAccesstoWhatsAppName]=React.useState()
+ const [accessToWhatsApp, setAccessToWhatsAppName]=React.useState()
const store = manageUserStore();
const reassignStore = reassignLearnerStore();
const setReassignId = reassignLearnerStore((state) => state.setReassignId);
@@ -323,7 +323,7 @@ const LearnersListItem: React.FC = ({
setGradeName(field.value)
}
else if(field.label === "ACCESS_TO_WHATSAPP"){
- setAccesstoWhatsAppName(field.value)
+ setAccessToWhatsAppName(field.value)
}
else if(field.label === "PROGRAM"){
setProgram(field.value)
@@ -452,7 +452,7 @@ const LearnersListItem: React.FC = ({
motherName={motherName}
subProgram={subProgram}
grade={grade}
- accesstoWhatsApp={accesstoWhatsApp}
+ accessToWhatsApp={accessToWhatsApp}
program={program}
/>
)}