From 4ff9b44f88674f714eae1bc5fe94b1fe558674ba Mon Sep 17 00:00:00 2001 From: Max Peintner Date: Fri, 27 Dec 2024 15:08:19 +0100 Subject: [PATCH] build --- apps/login/src/components/session-item.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/login/src/components/session-item.tsx b/apps/login/src/components/session-item.tsx index 449f7dc9..c3c28a03 100644 --- a/apps/login/src/components/session-item.tsx +++ b/apps/login/src/components/session-item.tsx @@ -88,11 +88,11 @@ export function SessionItem({ setLoading(false); }); - if (res?.redirect) { + if (res && "redirect" in res && res.redirect) { return router.push(res.redirect); } - if (res?.error) { + if (res && "error" in res && res.error) { setError(res.error); return; }