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.
feature/default_network_editable
Mark Stacey 4 years ago committed by GitHub
parent f4bb199f90
commit 107ef3559c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      shared/modules/metametrics.js
  2. 1
      ui/app/selectors/permissions.js

@ -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)
}
})
}
}

@ -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)

Loading…
Cancel
Save