Skip to content

Commit

Permalink
Merge pull request #27 from helix-bridge/jay/fix-balance-all
Browse files Browse the repository at this point in the history
Filter Polygon PoS from balance-all
  • Loading branch information
JayJay1024 authored May 24, 2024
2 parents b571d5a + dba41b8 commit cb6c1c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/xtoken-ui/src/hooks/use-balance-all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import abi from "@/abi/erc20";
import { ChainConfig, Token } from "@/types";
import { useAccount } from "wagmi";

const chains = getChainConfigs();
const chains = getChainConfigs().filter((c) => c.network !== "polygon");

interface BalanceAll {
chain: ChainConfig;
Expand Down Expand Up @@ -66,6 +66,7 @@ export function useBalanceAll() {
});
} else {
balanceAllRef.current = [];
setBalanceAll([]);
setLoading(false);
}
}, [address]);
Expand Down

0 comments on commit cb6c1c5

Please sign in to comment.