Skip to content

Commit

Permalink
fix crash on signature request (#8709)
Browse files Browse the repository at this point in the history
  • Loading branch information
brad-decker authored Jun 1, 2020
1 parent 9193522 commit ec2e5c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/app/hooks/useRetryTransaction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit ec2e5c8

Please sign in to comment.