Skip to content

Commit a3e6592

Browse files
committed
attempt fix
1 parent 5dd9d93 commit a3e6592

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

app/selectors/transactionController.ts

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -190,20 +190,16 @@ export const selectLocalTransactions = createDeepEqualSelector(
190190
selectNonReplacedTransactions,
191191
selectPendingSmartTransactionsForSelectedAccountGroup,
192192
selectEvmAddress,
193-
selectRequiredTransactionHashes,
193+
selectRequiredTransactionIds,
194194
],
195195
(
196196
nonReplacedTransactions,
197197
pendingSmartTransactions,
198198
activeEvmAddress,
199-
requiredTransactionHashes,
199+
requiredTransactionIds,
200200
) => {
201201
const transactions = nonReplacedTransactions.filter((transaction) => {
202-
const hash =
203-
'hash' in transaction && typeof transaction.hash === 'string'
204-
? transaction.hash.toLowerCase()
205-
: undefined;
206-
if (hash && requiredTransactionHashes.has(hash)) {
202+
if (requiredTransactionIds.has(transaction.id)) {
207203
return false;
208204
}
209205

@@ -217,14 +213,6 @@ export const selectLocalTransactions = createDeepEqualSelector(
217213

218214
const pendingSmartTransactionsForActiveAddress =
219215
pendingSmartTransactions.filter((transaction) => {
220-
const hash =
221-
'hash' in transaction && typeof transaction.hash === 'string'
222-
? transaction.hash.toLowerCase()
223-
: undefined;
224-
if (hash && requiredTransactionHashes.has(hash)) {
225-
return false;
226-
}
227-
228216
const fromAddress = transaction.txParams?.from;
229217
if (!fromAddress || !activeEvmAddress) {
230218
return false;

0 commit comments

Comments
 (0)