From 402ac8eb5601a3a55637bc927ca1d0a5632ce1d7 Mon Sep 17 00:00:00 2001 From: Jeffrey Mesa Date: Wed, 4 Sep 2024 23:17:23 -0400 Subject: [PATCH] fix: invalid condition --- src/app/[lang]/liveness/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/[lang]/liveness/page.tsx b/src/app/[lang]/liveness/page.tsx index a4252231..f67235d7 100644 --- a/src/app/[lang]/liveness/page.tsx +++ b/src/app/[lang]/liveness/page.tsx @@ -17,7 +17,7 @@ export default async function LivenessPage({ params: { lang } }: Props) { const citizen = await getCookie('citizen'); const intl = await getDictionary(lang); - if (!citizen) return redirect('identification'); + if (!citizen?.name) return redirect('identification'); return (