Skip to content

Commit

Permalink
Refactor SkyProxyPage to fix incorrect route in case of missing walle…
Browse files Browse the repository at this point in the history
…tAddress
  • Loading branch information
marcinciarka committed Sep 20, 2024
1 parent 774a88a commit 6e79e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/earn/srr/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit 6e79e5d

Please sign in to comment.