refactor(01): empty value show '-'

This commit is contained in:
puriphatt 2024-08-16 17:31:40 +07:00
parent 4fedd3ad6a
commit a56ac704ee
3 changed files with 44 additions and 12 deletions

View file

@ -329,7 +329,7 @@ async function fetchBranchById(id: string) {
zipCode: res.zipCode,
email: res.email,
contactName: res.contactName,
contact: res.contact.length > 0 ? res.contact[0].telephoneNo : ' ',
contact: res.contact.length > 0 ? res.contact[0].telephoneNo : '',
telephoneNo: res.telephoneNo,
longitude: res.longitude,
latitude: res.latitude,