Skip to content

Commit

Permalink
display 0 fee value as number instead of N/A in transaction list
Browse files Browse the repository at this point in the history
In transaction listing, when fee value is 0, number will be displayed instead of N/A.
  • Loading branch information
SpaceSurfer1 committed Apr 17, 2024
1 parent 4f8b9e7 commit b2786db
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions client/transactions/list/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,10 @@ export const TransactionsList = (
return {
value: feeAmount,
display: clickable(
0 !== feeAmount
? formatCurrency(
isCardReader ? txn.amount : txn.fees * -1,
currency
)
: __( 'N/A', 'woocommerce-payments' )
formatCurrency(
isCardReader ? txn.amount : txn.fees * -1,
currency
)
),
};
};
Expand Down

0 comments on commit b2786db

Please sign in to comment.