Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export default function AddWishlistModal({ open, onOpenChange, editingItem }: Ad
variant: "destructive",
});
setTimeout(() => {
window.location.href = "/api/login";
window.location.href = "/";
}, 500);
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function FindMatchesModal({ open, onOpenChange }: FindMatchesModa
variant: "destructive",
});
setTimeout(() => {
window.location.href = "/api/login";
window.location.href = "/";
}, 500);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions platforms/dreamSync/client/src/components/group-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function GroupCard({
variant: "destructive",
});
setTimeout(() => {
window.location.href = "/api/login";
window.location.href = "/";
}, 500);
return;
}
Expand Down Expand Up @@ -78,7 +78,7 @@ export default function GroupCard({
variant: "destructive",
});
setTimeout(() => {
window.location.href = "/api/login";
window.location.href = "/";
}, 500);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/dreamSync/client/src/components/user-card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function UserCard({ match, currentUserId, showFullDetails = false
variant: "destructive",
});
setTimeout(() => {
window.location.href = "/api/login";
window.location.href = "/";
}, 500);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion platforms/dreamSync/client/src/lib/apiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ apiClient.interceptors.response.use(
if (error.response?.status === 401) {
localStorage.removeItem("dreamsync_token");
localStorage.removeItem("dreamsync_user_id");
window.location.href = "/login";
window.location.href = "/";
}
return Promise.reject(error);
}
Expand Down