From ec2e5c848bf48a71792edac7cf9c21970e1d980e Mon Sep 17 00:00:00 2001 From: Brad Decker Date: Mon, 1 Jun 2020 12:27:51 -0500 Subject: [PATCH] fix crash on signature request (#8709) --- ui/app/hooks/useRetryTransaction.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/app/hooks/useRetryTransaction.js b/ui/app/hooks/useRetryTransaction.js index 1656c8dda..9b0a9e5f5 100644 --- a/ui/app/hooks/useRetryTransaction.js +++ b/ui/app/hooks/useRetryTransaction.js @@ -19,7 +19,8 @@ import { useMetricEvent } from './useMetricEvent' */ export function useRetryTransaction (transactionGroup) { const { primaryTransaction, initialTransaction } = transactionGroup - const gasPrice = primaryTransaction.txParams.gasPrice + // Signature requests do not have a txParams, but this hook is called indiscriminately + const gasPrice = primaryTransaction.txParams?.gasPrice const trackMetricsEvent = useMetricEvent(({ eventOpts: { category: 'Navigation',