Skip to content

Commit e5e4abb

Browse files
committed
fixup! fix: add missing bitcoin-mode translation keys
1 parent 577b120 commit e5e4abb

File tree

1 file changed

+12
-9
lines changed
  • apps/browser-extension-wallet/src/views/bitcoin-mode/features/activity/components

1 file changed

+12
-9
lines changed

apps/browser-extension-wallet/src/views/bitcoin-mode/features/activity/components/Activity.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,14 +128,17 @@ export const Activity = (): React.ReactElement => {
128128

129129
const walletAddress = addresses[0].address;
130130

131-
const groups = [...recentTransactions, ...pendingTransaction].reduce((acc, transaction) => {
132-
const dateKey = transaction.timestamp === 0 ? 'Pending' : formattedDate(new Date(transaction.timestamp * 1000));
133-
if (!acc[dateKey]) {
134-
acc[dateKey] = [];
135-
}
136-
acc[dateKey].push(transaction);
137-
return acc;
138-
}, {} as { [date: string]: Bitcoin.TransactionHistoryEntry[] });
131+
const groups = [...recentTransactions, ...pendingTransaction].reduce(
132+
(acc, transaction) => {
133+
const dateKey = transaction.timestamp === 0 ? 'Pending' : formattedDate(new Date(transaction.timestamp * 1000));
134+
if (!acc[dateKey]) {
135+
acc[dateKey] = [];
136+
}
137+
acc[dateKey].push(transaction);
138+
return acc;
139+
},
140+
{} as { [date: string]: Bitcoin.TransactionHistoryEntry[] }
141+
);
139142

140143
const sortedDates = Object.keys(groups).sort((a, b) => {
141144
if (a === 'Pending') return -1;
@@ -194,7 +197,7 @@ export const Activity = (): React.ReactElement => {
194197
items
195198
};
196199
});
197-
}, [addresses, recentTransactions, bitcoinPrice, explorerBaseUrl, pendingTransaction, fiatCurrency]);
200+
}, [addresses, recentTransactions, bitcoinPrice, explorerBaseUrl, pendingTransaction, fiatCurrency, t]);
198201

199202
const isLoading =
200203
addresses.length === 0 || explorerBaseUrl.length === 0 || currentCursor === null || !activityFetched;

0 commit comments

Comments
 (0)