1
0
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:
Alex Donesky 2021-10-11 09:06:19 -05:00 committed by GitHub
parent 3332a11f77
commit b242d950a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }
/** /**