Skip to content

Commit

Permalink
fix: invalid condition
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffreyArt1 committed Sep 5, 2024
1 parent a5ae2ce commit 402ac8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[lang]/liveness/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default async function LivenessPage({ params: { lang } }: Props) {
const citizen = await getCookie<CitizenCookie>('citizen');
const intl = await getDictionary(lang);

if (!citizen) return redirect('identification');
if (!citizen?.name) return redirect('identification');

return (
<div>
Expand Down

0 comments on commit 402ac8e

Please sign in to comment.