Skip to content

Commit

Permalink
fix(router): fix 404 route
Browse files Browse the repository at this point in the history
  • Loading branch information
tthvo committed Oct 23, 2023
1 parent 47010dc commit cb97add
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ const AppRoutes: React.FC<AppRoutesProps> = (_) => {
</RouteComponentTitleUpdates>
);
return <Route key={path} path={path} element={content} />;
})}
<Route key={'not-found'} element={<PageNotFound />} />
})
.concat([<Route key={'not-found'} path={'*'} element={<PageNotFound />} />])}
</Routes>
);
};
Expand Down

0 comments on commit cb97add

Please sign in to comment.