Skip to content

Commit

Permalink
fix: filter undefined tokens from getPoolTokens
Browse files Browse the repository at this point in the history
  • Loading branch information
agualis committed Sep 23, 2024
1 parent 7240f34 commit 437715a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ export function _useRemoveLiquidity(urlTxHash?: Hash) {
return pool.poolTokens
}

const tokens = getPoolTokens().map(token => getToken(token.address, pool.chain))
const tokens = getPoolTokens()
.map(token => getToken(token.address, pool.chain))
.filter((token): token is GqlToken => token !== undefined)

function tokensToShow() {
// Cow AMM pools don't support wethIsEth
Expand Down

0 comments on commit 437715a

Please sign in to comment.