Skip to content

Commit ebc6818

Browse files
committed
fix typeerror?
1 parent fb70480 commit ebc6818

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SmartTransactionsController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ export default class SmartTransactionsController extends PollingControllerV1<
310310

311311
if (isNewSmartTransaction) {
312312
// add smart transaction
313-
const cancelledNonceIndex = currentSmartTransactions.findIndex(
313+
const cancelledNonceIndex = currentSmartTransactions?.findIndex(
314314
(stx: SmartTransaction) =>
315315
stx.txParams?.nonce === smartTransaction.txParams?.nonce &&
316316
stx.status?.startsWith('cancelled'),

0 commit comments

Comments
 (0)