Merge pull request #937 from ubavic/fix/anonymous_users_in_transactions
fix: 'Anonymous' should show in transactions
This commit is contained in:
commit
95e4949bda
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