This commit is contained in:
Max Peintner
2024-12-27 15:08:19 +01:00
parent be13b0e1bf
commit 4ff9b44f88

View File

@@ -88,11 +88,11 @@ export function SessionItem({
setLoading(false); setLoading(false);
}); });
if (res?.redirect) { if (res && "redirect" in res && res.redirect) {
return router.push(res.redirect); return router.push(res.redirect);
} }
if (res?.error) { if (res && "error" in res && res.error) {
setError(res.error); setError(res.error);
return; return;
} }