Skip to content

Commit

Permalink
fix: chains
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Jan 11, 2024
1 parent e1833aa commit cac73ea
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/web3/store/walletSlice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ export function createWalletSlice({
const config = get().wagmiConfig;

if (wallet.isActive && config) {
if (wallet.chain) {
if (
wallet.chain &&
config.chains.some((chain) => chain.id === wallet.chain?.id)
) {
set({ isActiveWalletSetting: true });
const publicClient = getPublicClient(config);
const walletClient = await getWalletClient(config);
Expand Down

0 comments on commit cac73ea

Please sign in to comment.