Skip to content

Commit 5233d1e

Browse files
fix: APP-870 portfolio on org dashboard for web2 user (#2794)
1 parent 3ba09ac commit 5233d1e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web-marketplace/src/clients/regen/Regen.Routes.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,13 @@ export const getRegenRoutes = ({
198198
<>
199199
<Route
200200
index
201-
element={<Navigate to={address ? 'portfolio' : 'projects'} />}
201+
element={
202+
<Navigate to={address || isOrganization ? 'portfolio' : 'projects'} />
203+
}
202204
/>
203205
<Route
204206
path="portfolio"
205-
element={<KeplrRoute component={MyEcocredits} />}
207+
element={<KeplrOrAuthRoute component={MyEcocredits} />}
206208
/>
207209
<Route
208210
path="portfolio/bridge"

0 commit comments

Comments
 (0)