fix: return 'Anonymous'

This commit is contained in:
Nikola Ubavic 2021-11-18 18:03:09 +01:00
parent aff8fe373b
commit 1cb583fd31

View file

@ -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