Skip to content

Commit

Permalink
feat: redirect other reward pages after staking is turned on (dydxpro…
Browse files Browse the repository at this point in the history
  • Loading branch information
rosepuppy authored and DavideSegullo committed Jun 26, 2024
1 parent 6a0c989 commit 32a0ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/token/Token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const Token = () => {
<Suspense fallback={<LoadingSpace id="token-page" />}>
<Routes>
<Route path={TokenRoute.TradingRewards} element={<RewardsPage />} />
<Route path={TokenRoute.StakingRewards} element={<StakingPage />} />
<Route path={TokenRoute.Governance} element={<GovernancePage />} />
{!isStakingEnabled && <Route path={TokenRoute.StakingRewards} element={<StakingPage />} />}
{!isStakingEnabled && <Route path={TokenRoute.Governance} element={<GovernancePage />} />}
<Route path="*" element={<Navigate to={TokenRoute.TradingRewards} replace />} />
</Routes>
</Suspense>
Expand Down

0 comments on commit 32a0ba2

Please sign in to comment.