Skip to content

Commit

Permalink
Remove unnecessary json()
Browse files Browse the repository at this point in the history
  • Loading branch information
HendrikSchmidt committed Jan 20, 2025
1 parent 97750e3 commit f802397
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/dito/app/routes/vorpruefung.hinweise.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Container from "@digitalcheck/shared/components/Container";
import Heading from "@digitalcheck/shared/components/Heading";
import InlineNotice from "@digitalcheck/shared/components/InlineNotice";
import RichText from "@digitalcheck/shared/components/RichText";
import { json, type LoaderFunctionArgs } from "@remix-run/node";
import { type LoaderFunctionArgs } from "@remix-run/node";
import { type MetaFunction, useLoaderData } from "@remix-run/react";
import { preCheck } from "resources/content";
import { ROUTE_GENERAL_INFO, ROUTE_PRECHECK } from "resources/staticRoutes";
Expand All @@ -20,7 +20,7 @@ export const meta: MetaFunction = ({ matches }) => {

export async function loader({ request }: LoaderFunctionArgs) {
const { answers } = await getAnswersFromCookie(request);
return json({ answers });
return { answers };
}

export default function GeneralInfo() {
Expand Down

0 comments on commit f802397

Please sign in to comment.