Merge pull request #937 from ubavic/fix/anonymous_users_in_transactions

fix: 'Anonymous' should show in transactions
This commit is contained in:
Rafael Taranto 2021-11-23 09:47:11 +00:00 committed by GitHub
commit 95e4949bda

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