Skip to content

Commit

Permalink
Fix: init useConnectedToHardhatStore
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchung committed Oct 17, 2024
1 parent 11c1cc7 commit 67e7b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/toasts/OfflineToast.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { useConnectedToHardhatStore } from '@/state/connectedToHardhat';
const OfflineToast = () => {
const isConnected = useInternetStatus();
const { chainId } = useAccountSettings();
const { connectedToHardhat } = useConnectedToHardhatStore;
const { connectedToHardhat } = useConnectedToHardhatStore();
const isMainnet = chainId === ChainId.mainnet && !connectedToHardhat;
return <Toast icon="offline" isVisible={!isConnected && isMainnet} text={lang.t('button.offline')} />;
};
Expand Down

0 comments on commit 67e7b09

Please sign in to comment.