mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
fix crash on signature request (#8709)
This commit is contained in:
parent
9193522bd5
commit
ec2e5c848b
@ -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…
Reference in New Issue
Block a user