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:
parent
c1453c7528
commit
befd580ab2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user