mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-10-22 11:22:43 +02:00
add optional chaining in isLegacyTransaction method to prevent blow up of useGasFeeInputs use on view quote page (#12316)
This commit is contained in:
parent
3332a11f77
commit
b242d950a0
@ -163,7 +163,7 @@ export function sumHexes(...args) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function isLegacyTransaction(txParams) {
|
export function isLegacyTransaction(txParams) {
|
||||||
return txParams.type === TRANSACTION_ENVELOPE_TYPES.LEGACY;
|
return txParams?.type === TRANSACTION_ENVELOPE_TYPES.LEGACY;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user