Skip to content

Commit

Permalink
fixup! fix(suite-native): pending transactions at the beginning of th…
Browse files Browse the repository at this point in the history
…e list in one separate group as before
  • Loading branch information
matejkriz committed Jul 31, 2024
1 parent 81fc6db commit 5257993
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ const sectionListContainerStyle = prepareNativeStyle(utils => ({
}));

const sortKeysPendingFirst = (a: string, b: string) => {
if (a === 'pending' && b === 'pending') return 0;
if (a === 'pending') return -1;
if (b === 'pending') return 1;

Expand All @@ -85,6 +86,7 @@ const sortKeysPendingFirst = (a: string, b: string) => {
};

const sortPendingTransactions = (a: WalletAccountTransaction, b: WalletAccountTransaction) => {
if (a.blockTime === undefined && b.blockTime === undefined) return 0;
if (a.blockTime === undefined) return -1;
if (b.blockTime === undefined) return 1;

Expand Down

0 comments on commit 5257993

Please sign in to comment.