mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-25 11:28:51 +01:00
Fix lint errors (#9779)
There were a few lint errors introduced in #9768 due to the recently merged prettier PR. They have now been fixed. Additionally, one line using the property `eth_accounts` was intermittently failing for me locally. I've been seeing this lint failure off-and-on for a few days now - I'm not sure why I haven't seen it on CI. Either way though, it's now ignored.
This commit is contained in:
parent
f4bb199f90
commit
107ef3559c
@ -68,7 +68,10 @@ export const segment = process.env.SEGMENT_WRITE_KEY
|
|||||||
: segmentNoop
|
: segmentNoop
|
||||||
|
|
||||||
export const segmentLegacy = process.env.SEGMENT_LEGACY_WRITE_KEY
|
export const segmentLegacy = process.env.SEGMENT_LEGACY_WRITE_KEY
|
||||||
? new Analytics(process.env.SEGMENT_LEGACY_WRITE_KEY, { flushAt, flushInterval })
|
? new Analytics(process.env.SEGMENT_LEGACY_WRITE_KEY, {
|
||||||
|
flushAt,
|
||||||
|
flushInterval,
|
||||||
|
})
|
||||||
: segmentNoop
|
: segmentNoop
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -256,7 +259,6 @@ export function getTrackMetaMetricsEvent(metamaskVersion, getDynamicState) {
|
|||||||
} else {
|
} else {
|
||||||
segment.track(trackOptions, callback)
|
segment.track(trackOptions, callback)
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -207,6 +207,7 @@ export function getOrderedConnectedAccountsForActiveTab(state) {
|
|||||||
} = state
|
} = state
|
||||||
|
|
||||||
const permissionsHistoryByAccount =
|
const permissionsHistoryByAccount =
|
||||||
|
// eslint-disable-next-line camelcase
|
||||||
permissionsHistory[activeTab.origin]?.eth_accounts?.accounts
|
permissionsHistory[activeTab.origin]?.eth_accounts?.accounts
|
||||||
const orderedAccounts = getMetaMaskAccountsOrdered(state)
|
const orderedAccounts = getMetaMaskAccountsOrdered(state)
|
||||||
const connectedAccounts = getPermittedAccountsForCurrentTab(state)
|
const connectedAccounts = getPermittedAccountsForCurrentTab(state)
|
||||||
|
Loading…
Reference in New Issue
Block a user