Skip to content

Commit

Permalink
fix: events subscribe to graz store changes
Browse files Browse the repository at this point in the history
  • Loading branch information
codingki committed May 11, 2023
1 parent 473fd5e commit f20f621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graz/src/provider/events.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import { WalletType } from "../types/wallet";
export const useGrazEvents = () => {
const isSessionActive =
typeof window !== "undefined" && window.sessionStorage.getItem(RECONNECT_SESSION_KEY) === "Active";
const { activeChain, _reconnect, _onReconnectFailed, _reconnectConnector } = useGrazStore.getState();
const { activeChain, _reconnect, _onReconnectFailed, _reconnectConnector } = useGrazStore();

useEffect(() => {
// will reconnect on refresh
Expand Down

0 comments on commit f20f621

Please sign in to comment.