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 => {
|
||||
if (tx.isAnonymous) return 'Anonymous'
|
||||
if (tx.customerName) return tx.customerName
|
||||
if (tx.customerIdCardData) return formatCustomerName(tx.customerIdCardData)
|
||||
return tx.customerPhone
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue