Skip to content

Commit e7e053b

Browse files
committed
Handle case where there are no unapproved txes
1 parent 0138a39 commit e7e053b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/ducks/send/send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ export function updateSendAsset(
18921892
const account = getTargetAccount(state, sendingAddress);
18931893
if (type === ASSET_TYPES.NATIVE) {
18941894
const unapprovedTxs = getUnapprovedTxs(state);
1895-
const unapprovedTx = unapprovedTxs[draftTransaction.id];
1895+
const unapprovedTx = unapprovedTxs?.[draftTransaction.id];
18961896

18971897
await dispatch(
18981898
addHistoryEntry(

0 commit comments

Comments
 (0)