Skip to content

Commit

Permalink
chore: fix typo in useAllCurrencyCombinations.ts (#2778)
Browse files Browse the repository at this point in the history
occurence -> occurrence
  • Loading branch information
eltociear committed Nov 18, 2021
1 parent 7938273 commit 7b83e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useAllCurrencyCombinations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export function useAllCurrencyCombinations(currencyA?: Currency, currencyB?: Cur
const firstIndexInOtherPairs = otherPairs.findIndex(([t0Other, t1Other]) => {
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
})
// optionally filter out some pairs for tokens with custom bases defined
Expand Down

2 comments on commit 7b83e39

@vercel
Copy link

@vercel vercel bot commented on 7b83e39 Nov 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

widgets – ./

widgets-uniswap.vercel.app
widgets-git-main-uniswap.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7b83e39 Nov 18, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

interface – ./

interface-git-main-uniswap.vercel.app
interface-uniswap.vercel.app

Please sign in to comment.