Skip to content

Commit 42a9f67

Browse files
committed
fix: return null if not initialState
1 parent 9ca0cc2 commit 42a9f67

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/providers.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ export const Providers = ({ children }: { children: ReactNode }) => {
1717
setInitialState(state)
1818
}, [config])
1919

20-
if (!initialState) return null
20+
if (!initialState)
21+
console.error('[ Bridge ] provider initial state undefined')
2122

2223
return (
2324
<WagmiProvider config={config} initialState={initialState}>

0 commit comments

Comments
 (0)