optional chaining done for language in register user

This commit is contained in:
rockyeverlast
2025-09-09 17:37:45 +05:30
parent 284b5f3099
commit 20a92a60ab

View File

@@ -115,7 +115,7 @@ const RegisterUsers = () => {
"Gender": agency.gender,
"DOB": agency.date_of_birth ? new Date(agency.date_of_birth).toLocaleDateString('en-GB').replace(/\//g, '-') : 'N/A',
"Type Of User": agency.principal_type?.principal_type_title || 'N/A',
"Language": agency.principle_language_linkss.language.language_name,
"Language": agency?.principle_language_linkss?.language?.language_name,
"Active/Deactive": agency.is_active === true ? 'Active' : 'Inactive',
"Action": (
<HStack justifyContent="center">