Skip to content

Commit

Permalink
fix(suite-native): add fallback to []
Browse files Browse the repository at this point in the history
  • Loading branch information
komret committed Jun 21, 2024
1 parent d3abb20 commit 40b14fe
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ export const TransactionList = ({
const [pendingTxs, confirmedTxs] = arrayPartition(transactions, isPending);
const accountTransactionsByMonth = groupTransactionsByDate(confirmedTxs, 'month');
accountTransactionsByMonth['pending'] = [
...accountTransactionsByMonth['no-blocktime'],
...(accountTransactionsByMonth['no-blocktime'] ?? []),
...pendingTxs,
];
delete accountTransactionsByMonth['no-blocktime'];

const transactionMonthKeys = Object.keys(accountTransactionsByMonth) as MonthKey[];

if (tokenContract) {
Expand Down

0 comments on commit 40b14fe

Please sign in to comment.