Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
clmntsnr committed Dec 24, 2024
1 parent 9aad5c5 commit fdc6745
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"typedoc": "^0.26.7",
"vite-plugin-dts": "^4.2.1",
"viem": "2.21.54",
"wagmi": "^2.14.1",
"wagmi": "^2.14.6",
"zustand": "^5.0.0-rc.2"
},
"devDependencies": {
Expand Down
8 changes: 4 additions & 4 deletions src/context/Wallet.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useWalletState, { type WalletOptions } from "../hooks/useWalletState";
export type WalletContextType = ReturnType<typeof useWalletState>;

const WalletContext = createContext<WalletContextType | null>(null);
const queryClient = new QueryClient();
const queryClient = new QueryClient()

export function useWalletContext() {
const data = useContext(WalletContext);
Expand Down Expand Up @@ -36,12 +36,12 @@ function WalletStateProvider({

export function WalletProvider({ config, children, chains, walletOptions }: PropsWithChildren<WalletProviderProps>) {
return (
<QueryClientProvider client={queryClient}>
<WagmiProvider config={config}>
<WagmiProvider config={config}>
<QueryClientProvider client={queryClient}>
<WalletStateProvider options={walletOptions} chains={chains}>
{children}
</WalletStateProvider>
</WagmiProvider>
</QueryClientProvider>
</WagmiProvider>
);
}

0 comments on commit fdc6745

Please sign in to comment.