fix crash on signature request (#8709)

feature/default_network_editable
Brad Decker 4 years ago committed by GitHub
parent 9193522bd5
commit ec2e5c848b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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',

Loading…
Cancel
Save