diff --git a/deploy-web/src/context/WalletProvider/WalletProvider.tsx b/deploy-web/src/context/WalletProvider/WalletProvider.tsx index 3c4cd53d3..0505d75b4 100644 --- a/deploy-web/src/context/WalletProvider/WalletProvider.tsx +++ b/deploy-web/src/context/WalletProvider/WalletProvider.tsx @@ -139,11 +139,13 @@ export const WalletProvider = ({ children }) => { }); } - // Redirect to homepage when changing wallet + // Update balances on wallet address change useEffect(() => { if (walletAddress) { - router.push(UrlService.home()); - + // Redirect to deployment list if on deployment detail page + if (router.pathname.startsWith("/deployments/")) { + router.push(UrlService.deploymentList()); + } loadWallet(); } }, [walletAddress]);