Skip to content

Commit

Permalink
fixes: #277
Browse files Browse the repository at this point in the history
  • Loading branch information
lochie committed Aug 24, 2023
1 parent eec572b commit 982f6bf
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ const ChainSelectList = ({
}) => {
const { connector } = useAccount();
const { chain, chains } = useNetwork();
const { status, isLoading, pendingChainId, switchNetwork } =
useSwitchNetwork();
const { isLoading, pendingChainId, switchNetwork } = useSwitchNetwork();

const locales = useLocales({});
const mobile = isMobile();

const disabled = status === 'error' || !switchNetwork;
const disabled = !switchNetwork;

const handleSwitchNetwork = (chainId: number) => {
if (switchNetwork) {
Expand Down

0 comments on commit 982f6bf

Please sign in to comment.