chore: fix typo in useAllCurrencyCombinations.ts (#2778)

occurence -> occurrence
This commit is contained in:
Ikko Ashimine 2021-11-18 13:40:58 +09:00 committed by GitHub
parent 7938273c0c
commit 7b83e3968f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -48,7 +48,7 @@ export function useAllCurrencyCombinations(currencyA?: Currency, currencyB?: Cur
const firstIndexInOtherPairs = otherPairs.findIndex(([t0Other, t1Other]) => { const firstIndexInOtherPairs = otherPairs.findIndex(([t0Other, t1Other]) => {
return (t0.equals(t0Other) && t1.equals(t1Other)) || (t0.equals(t1Other) && t1.equals(t0Other)) return (t0.equals(t0Other) && t1.equals(t1Other)) || (t0.equals(t1Other) && t1.equals(t0Other))
}) })
// only accept the first occurence of the same 2 tokens // only accept the first occurrence of the same 2 tokens
return firstIndexInOtherPairs === i return firstIndexInOtherPairs === i
}) })
// optionally filter out some pairs for tokens with custom bases defined // optionally filter out some pairs for tokens with custom bases defined