Move checkExistingAddresses to helpers/utils/util and stop its use of ramda (#8868)
parent
429af23ea0
commit
ac525572eb
@ -1,13 +0,0 @@ |
||||
import R from 'ramda' |
||||
|
||||
export function checkExistingAddresses (address, tokenList = []) { |
||||
if (!address) { |
||||
return false |
||||
} |
||||
|
||||
const matchesAddress = (existingToken) => { |
||||
return existingToken.address.toLowerCase() === address.toLowerCase() |
||||
} |
||||
|
||||
return R.any(matchesAddress)(tokenList) |
||||
} |
Loading…
Reference in new issue