diff --git a/packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx b/packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx index efc570a52a6..f46037d140a 100644 --- a/packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx +++ b/packages/desktop-client/src/components/mobile/transactions/TransactionListItem.tsx @@ -182,7 +182,7 @@ export function TransactionListItem({ }), }} > - {prettyPayee || 'No Payee'} + {prettyPayee || '(No payee)'} {isPreview ? ( diff --git a/packages/desktop-client/src/components/mobile/utils.ts b/packages/desktop-client/src/components/mobile/utils.ts index a2a80c4f69b..db935fd7483 100644 --- a/packages/desktop-client/src/components/mobile/utils.ts +++ b/packages/desktop-client/src/components/mobile/utils.ts @@ -27,5 +27,5 @@ export function getPrettyPayee({ return payee.name; } - return '(No payee)'; + return ''; } diff --git a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx index f2195155b2e..152bed07a88 100644 --- a/packages/desktop-client/src/components/transactions/TransactionsTable.jsx +++ b/packages/desktop-client/src/components/transactions/TransactionsTable.jsx @@ -360,7 +360,7 @@ function getPayeePretty(transaction, payee, transferAcct, numHiddenPayees = 0) { return formatPayeeName(payeeId.slice('new:'.length)); } - return '(No payee)'; + return ''; } function StatusCell({ @@ -672,7 +672,13 @@ function PayeeCell({ isCreatingPayee.current = false; } }} - formatter={() => getPayeePretty(transaction, payee, transferAccount)} + formatter={() => { + const payeeName = getPayeePretty(transaction, payee, transferAccount); + if (!payeeName && isPreview) { + return '(No payee)'; + } + return payeeName; + }} unexposedContent={props => { const payeeName = (