diff --git a/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx b/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx index 2e700d761..09d903317 100644 --- a/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx +++ b/frontend/src/app/(routes)/cosmwasm/[network]/PageContracts.tsx @@ -19,6 +19,7 @@ const PageContracts = ({ chainName }: { chainName: string }) => { const [selectedTab, setSelectedTab] = useState('Contracts'); const paramContractAddress = useSearchParams().get('contract'); + const paramsCodeId = useSearchParams().get('code_id'); useEffect(() => { if (paramContractAddress?.length) { @@ -26,6 +27,12 @@ const PageContracts = ({ chainName }: { chainName: string }) => { } }, [paramContractAddress]); + useEffect(() => { + if (paramsCodeId?.length) { + setSelectedTab('All Contracts'); + } + }, [paramsCodeId]); + return (