Commit 751a8383 authored by Emika Chamodi's avatar Emika Chamodi

Voice analys fix

parent c88ebc61
......@@ -66,6 +66,7 @@ export const getStatusColor = (status?: ApplicationType["status"]) => {
};
export const getAddress = (address: AddressType) => {
if (!address) return "";
return `${address.addressLine}, ${address.city}, ${address.country}`;
};
......
......@@ -57,7 +57,7 @@ const Applicant = ({ application }: OwnProps) => {
<textarea
className="form-control"
rows={3}
value={getAddress(candidate.contacts.address)}
value={getAddress(candidate.contacts?.address)}
disabled
/>
</div>
......@@ -71,7 +71,7 @@ const Applicant = ({ application }: OwnProps) => {
type="text"
className="form-control"
name="phone"
value={candidate.contacts?.phone}
value={candidate.contacts?.phone || ""}
disabled
/>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment