Skip to content

Commit

Permalink
No payee text
Browse files Browse the repository at this point in the history
  • Loading branch information
joel-jeremy committed Nov 14, 2024
1 parent ccfc118 commit 14a5fd5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export function TransactionListItem({
}),
}}
>
{prettyPayee || 'No Payee'}
{prettyPayee || '(No payee)'}
</TextOneLine>
</View>
{isPreview ? (
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop-client/src/components/mobile/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ export function getPrettyPayee({
return payee.name;
}

return '(No payee)';
return '';
}
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ function getPayeePretty(transaction, payee, transferAcct, numHiddenPayees = 0) {
return formatPayeeName(payeeId.slice('new:'.length));
}

return '(No payee)';
return '';
}

function StatusCell({
Expand Down Expand Up @@ -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 = (
<UnexposedCellContent
Expand Down

0 comments on commit 14a5fd5

Please sign in to comment.