We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0620a27 commit 85afb20Copy full SHA for 85afb20
apps/browser-extension-wallet/src/stores/slices/wallet-activities-slice.ts
@@ -335,6 +335,10 @@ const mapWalletActivities = memoize(
335
)
336
return 1;
337
338
+ // ensure pending tx's always appear on top, separated from the condition above for readability
339
+ if (firstTx.status === ActivityStatus.PENDING && secondTx.status !== ActivityStatus.PENDING) return -1;
340
+ if (secondTx.status === ActivityStatus.PENDING && firstTx.status !== ActivityStatus.PENDING) return 1;
341
+
342
// otherwise sort by date
343
return (secondTx.date?.getTime() || 0) - (firstTx.date?.getTime() || 0);
344
}),
0 commit comments