Skip to content

Commit

Permalink
fix: params types
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyArt1 committed Sep 28, 2024
1 parent 2845294 commit 5ab394b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/[lang]/redirection/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import { Counter } from './counter';
import AccountCreated from '@public/assets/account-created.svg';
import styles from './page.module.css';

type Props = { searchParams: { cedula: string }; lang: Locale };
type Props = { searchParams: { cedula: string }; params: { lang: Locale } };

export default async function RedirectionPage({ searchParams, lang }: Props) {
const intl = await getDictionary(lang);
export default async function RedirectionPage({ searchParams, params }: Props) {
const intl = await getDictionary(params.lang);
const cedula = searchParams.cedula;

if (!cedula) redirect('identification');
Expand Down

0 comments on commit 5ab394b

Please sign in to comment.