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"]) => { ...@@ -66,6 +66,7 @@ export const getStatusColor = (status?: ApplicationType["status"]) => {
}; };
export const getAddress = (address: AddressType) => { export const getAddress = (address: AddressType) => {
if (!address) return "";
return `${address.addressLine}, ${address.city}, ${address.country}`; return `${address.addressLine}, ${address.city}, ${address.country}`;
}; };
......
...@@ -57,7 +57,7 @@ const Applicant = ({ application }: OwnProps) => { ...@@ -57,7 +57,7 @@ const Applicant = ({ application }: OwnProps) => {
<textarea <textarea
className="form-control" className="form-control"
rows={3} rows={3}
value={getAddress(candidate.contacts.address)} value={getAddress(candidate.contacts?.address)}
disabled disabled
/> />
</div> </div>
...@@ -71,7 +71,7 @@ const Applicant = ({ application }: OwnProps) => { ...@@ -71,7 +71,7 @@ const Applicant = ({ application }: OwnProps) => {
type="text" type="text"
className="form-control" className="form-control"
name="phone" name="phone"
value={candidate.contacts?.phone} value={candidate.contacts?.phone || ""}
disabled disabled
/> />
</div> </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