From 6e79e5d354835c3e6bd6a7ad98663093b2dbd31f Mon Sep 17 00:00:00 2001 From: Marcin Ciarka Date: Fri, 20 Sep 2024 14:34:35 +0200 Subject: [PATCH] Refactor SkyProxyPage to fix incorrect route in case of missing walletAddress --- pages/earn/srr/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/earn/srr/index.tsx b/pages/earn/srr/index.tsx index 8b0e70a31b..93819cba70 100644 --- a/pages/earn/srr/index.tsx +++ b/pages/earn/srr/index.tsx @@ -20,7 +20,7 @@ function SkyProxyPage({ walletAddress }: { walletAddress: string }) { const { walletAddress: walletContextAddress } = useAccount() const { replace } = useRouter() if (!walletAddress && walletContextAddress) { - void replace(`/earn/ssr/${walletContextAddress}`) + void replace(`/earn/srr/${walletContextAddress}`) } return (