Skip to content

Commit

Permalink
Fix default routing
Browse files Browse the repository at this point in the history
We did not properly migrate our routing code when
upgrading react-router-dom. This fixes that.
  • Loading branch information
Arnei committed Feb 12, 2024
1 parent 06eedd5 commit 3a17c1e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ function App({

<Route
path={"*"}
// @ts-expect-error TS(2322): Type '{ path: string; render: () => Element; }' is... Remove this comment to see the full error message
render={() => <Navigate to={"/events/events"} replace />}
element={<Navigate to={"/events/events"} replace />}
/>
</Routes>
</HashRouter>
Expand Down

0 comments on commit 3a17c1e

Please sign in to comment.