From b242d950a0f6828486d73a0fbc5fd0871bb6e474 Mon Sep 17 00:00:00 2001 From: Alex Donesky Date: Mon, 11 Oct 2021 09:06:19 -0500 Subject: [PATCH] add optional chaining in isLegacyTransaction method to prevent blow up of useGasFeeInputs use on view quote page (#12316) --- ui/helpers/utils/transactions.util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/helpers/utils/transactions.util.js b/ui/helpers/utils/transactions.util.js index 26ba26273..4f1a1e1a4 100644 --- a/ui/helpers/utils/transactions.util.js +++ b/ui/helpers/utils/transactions.util.js @@ -163,7 +163,7 @@ export function sumHexes(...args) { } export function isLegacyTransaction(txParams) { - return txParams.type === TRANSACTION_ENVELOPE_TYPES.LEGACY; + return txParams?.type === TRANSACTION_ENVELOPE_TYPES.LEGACY; } /**