Display not found instead of error

This commit is contained in:
dominik-zeglen 2019-11-13 17:52:46 +01:00
parent 1dd0488c62
commit 0d51418f72

View file

@ -6,7 +6,7 @@ import { Query, QueryResult } from "react-apollo";
import { useIntl } from "react-intl";
import AppProgress from "./components/AppProgress";
import ErrorPage from "./components/ErrorPage/ErrorPage";
import NotFoundPage from "./components/NotFoundPage";
import useNavigator from "./hooks/useNavigator";
import useNotifier from "./hooks/useNotifier";
import { commonMessages } from "./intl";
@ -129,7 +129,9 @@ export function TypedQuery<TData, TVariables>(
true
)
) {
childrenOrNotFound = <ErrorPage onBack={() => navigate("/")} />;
childrenOrNotFound = (
<NotFoundPage onBack={() => navigate("/")} />
);
}
if (displayLoader) {