diff --git a/src/components/Navbar/NetworkSwitcher.tsx b/src/components/Navbar/NetworkSwitcher.tsx index 7acd7a91..9c15dfa4 100644 --- a/src/components/Navbar/NetworkSwitcher.tsx +++ b/src/components/Navbar/NetworkSwitcher.tsx @@ -89,8 +89,12 @@ export default function NetworkSwitcher({ handleCloseSidebar }: NetworkSwitcherP flexDirection: 'column', alignItems: 'baseline', color: theme.palette.text.primary, + ...(network.name === activeNetwork.name && { cursor: 'auto' }), + }} + onClick={() => { + if (network.name === activeNetwork.name) return + changeNetwork(network.name) }} - onClick={() => changeNetwork(network.name)} > { + if (network.name === activeNetwork.name) return handleChangeNetwork(network.name) }} - sx={{ gap: '.6rem', justifyContent: 'space-between' }} + sx={{ + gap: '.6rem', + justifyContent: 'space-between', + ...(network.name === activeNetwork.name && { cursor: 'auto' }), + }} data-cy={`network-name-${network.name}`} >