1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

add parens to arrow function parameters (#8060)

This commit is contained in:
Jenny Pollack 2020-02-17 16:12:48 -07:00 committed by GitHub
parent c1453c7528
commit befd580ab2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ export default class ConfirmAddSuggestedToken extends Component {
checkTokenDuplicates (pendingTokens, tokens) {
const pending = Object.keys(pendingTokens)
const existing = tokens.map(token => token.address)
const existing = tokens.map((token) => token.address)
const dupes = pending.filter((proposed) => {
return existing.includes(proposed)
})
@ -156,8 +156,8 @@ export default class ConfirmAddSuggestedToken extends Component {
const duplicates = Object.keys(pendingTokens)
.map((addr) => pendingTokens[addr])
.filter((token) => {
const dupes = tokens.filter(old => old.symbol === token.symbol)
.filter(old => old.address !== token.address)
const dupes = tokens.filter((old) => old.symbol === token.symbol)
.filter((old) => old.address !== token.address)
return dupes.length > 0
})
return duplicates.length > 0