Skip to content

Commit

Permalink
update error page in UserHome
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Dec 12, 2024
1 parent d1fba3b commit d75387e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Users/UserHome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
import Loading from "@/components/Common/Loading";
import Page from "@/components/Common/Page";
import { userChildProps } from "@/components/Common/UserColumns";
import Error404 from "@/components/ErrorPages/404";
import ErrorPage from "@/components/ErrorPages/DefaultErrorPage";
import LinkedFacilitiesTab from "@/components/Users/LinkedFacilitiesTab";
import LinkedSkillsTab from "@/components/Users/LinkedSkillsTab";
import UserBanner from "@/components/Users/UserBanner";
Expand Down Expand Up @@ -87,7 +87,7 @@ export default function UserHome(props: UserHomeProps) {
const currentTab = isValidTab(normalizedTab) ? normalizedTab : undefined;

if (!currentTab) {
return <Error404 />;
return <ErrorPage />;
}

const SelectedTab = TABS[currentTab].body;
Expand Down

0 comments on commit d75387e

Please sign in to comment.