Skip to content

Commit

Permalink
fix: wagmi zustand sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Jun 4, 2024
1 parent e1b0d37 commit e4618ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/web3/components/WagmiZustandSync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import { Config, GetAccountReturnType, watchAccount } from '@wagmi/core';
import { useEffect } from 'react';
import { ReactNode, useEffect } from 'react';

export interface WagmiZustandSyncProps {
wagmiConfig: Config;
Expand All @@ -30,7 +30,7 @@ export function WagmiZustandSync({
defaultChainId,
withAutoConnect,
store,
}: WagmiZustandSyncProps) {
}: WagmiZustandSyncProps): ReactNode {
useEffect(() => {
if (defaultChainId) {
store.setDefaultChainId(defaultChainId);
Expand All @@ -47,5 +47,5 @@ export function WagmiZustandSync({
},
});

return;
return null;
}

0 comments on commit e4618ef

Please sign in to comment.