Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
peintnermax committed Dec 27, 2024
1 parent be13b0e commit 4ff9b44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/login/src/components/session-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4ff9b44

Please sign in to comment.