Skip to content

Commit

Permalink
get matching pool fund only if native token address is available
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Jul 11, 2024
1 parent 83b2f26 commit 35fedb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vue-app/src/api/clrFund.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export async function getClrFundInfo() {
}

try {
matchingPool = await getMatchingFunds(nativeTokenAddress)
if (nativeTokenAddress) {
matchingPool = await getMatchingFunds(nativeTokenAddress)
}
} catch (err) {
/* eslint-disable-next-line no-console */
console.error('Failed to get matching pool', err)
Expand Down

0 comments on commit 35fedb0

Please sign in to comment.