1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 11:22:43 +02: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:
Mark Stacey 2020-11-03 16:05:41 -03:30 committed by GitHub
parent f4bb199f90
commit 107ef3559c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -68,7 +68,10 @@ export const segment = process.env.SEGMENT_WRITE_KEY
: segmentNoop
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
/**
@ -256,7 +259,6 @@ export function getTrackMetaMetricsEvent(metamaskVersion, getDynamicState) {
} else {
segment.track(trackOptions, callback)
}
})
}
}

View File

@ -207,6 +207,7 @@ export function getOrderedConnectedAccountsForActiveTab(state) {
} = state
const permissionsHistoryByAccount =
// eslint-disable-next-line camelcase
permissionsHistory[activeTab.origin]?.eth_accounts?.accounts
const orderedAccounts = getMetaMaskAccountsOrdered(state)
const connectedAccounts = getPermittedAccountsForCurrentTab(state)