1
0
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:
Brad Decker 2020-06-01 12:27:51 -05:00 committed by GitHub
parent 9193522bd5
commit ec2e5c848b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',