Skip to content

Commit

Permalink
refactor(frontend): clean up types in review.tsx (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregory-j-baker authored Mar 4, 2025
1 parent 7262272 commit a7d1343
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions frontend/app/routes/protected/person-case/review.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { useId } from 'react';
import type { RouteHandle } from 'react-router';
import { useFetcher } from 'react-router';

import type { SessionData } from 'express-session';
import type { ResourceKey } from 'i18next';
import { useTranslation } from 'react-i18next';

Expand Down Expand Up @@ -71,7 +70,7 @@ function validateInPersonSINCaseSession(
sessionData: InPersonSinApplication | undefined,
tabId: string,
request: Request,
): Required<NonNullable<SessionData['inPersonSinApplications'][number]>> {
): Required<InPersonSinApplication> {
if (sessionData === undefined) {
throw i18nRedirect('routes/protected/person-case/privacy-statement.tsx', request, {
search: new URLSearchParams({ tid: tabId }),
Expand Down

0 comments on commit a7d1343

Please sign in to comment.