fix: return 'Anonymous'
This commit is contained in:
parent
aff8fe373b
commit
1cb583fd31
1 changed files with 1 additions and 0 deletions
|
|
@ -152,6 +152,7 @@ const Transactions = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getCustomerDisplayName = tx => {
|
const getCustomerDisplayName = tx => {
|
||||||
|
if (tx.isAnonymous) return 'Anonymous'
|
||||||
if (tx.customerName) return tx.customerName
|
if (tx.customerName) return tx.customerName
|
||||||
if (tx.customerIdCardData) return formatCustomerName(tx.customerIdCardData)
|
if (tx.customerIdCardData) return formatCustomerName(tx.customerIdCardData)
|
||||||
return tx.customerPhone
|
return tx.customerPhone
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue