Skip to content

Commit

Permalink
Merge pull request #610 from ianmcorvidae/better-il-error
Browse files Browse the repository at this point in the history
Make the standalone instant launch page show errors immediately
  • Loading branch information
ianmcorvidae authored Dec 9, 2024
2 parents 9ac233b + febdf41 commit 1ef6170
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/components/instantlaunches/launch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import { useConfig } from "contexts/config";
import { useUserProfile } from "contexts/userProfile";
import globalConstants from "../../../constants";
import { useTranslation } from "i18n";
import ids from "components/instantlaunches/ids";
import isQueryLoading from "components/utils/isQueryLoading";
import InstantLaunchButtonWrapper from "components/instantlaunches/InstantLaunchButtonWrapper";
import withErrorAnnouncer from "components/error/withErrorAnnouncer";
import LoadingAnimation from "components/vice/loading/LoadingAnimation";

import ErrorTypographyWithDialog from "components/error/ErrorTypographyWithDialog";
import WrappedErrorHandler from "components/error/WrappedErrorHandler";

const InstantLaunchStandalone = (props) => {
const {
Expand Down Expand Up @@ -84,11 +85,10 @@ const InstantLaunchStandalone = (props) => {
if (isLoading) {
return <LoadingAnimation />;
} else if (error || resourceError) {
const err = error || resourceError;
return (
<ErrorTypographyWithDialog
errorMessage={t("instantLaunchError")}
errorObject={err}
<WrappedErrorHandler
baseId={ids.BASE}
errorObject={error || resourceError}
/>
);
} else {
Expand Down

0 comments on commit 1ef6170

Please sign in to comment.