This commit is contained in:
everythingonblack
2025-05-07 16:38:54 +07:00
parent 92280ffdd3
commit c136495d10
7 changed files with 52 additions and 17 deletions

View File

@@ -103,7 +103,8 @@ const LinktreePage = ({ user, setModal }) => {
const response = await loginUser(username, password);
if (response.success) {
localStorage.setItem('auth', response.token);
window.location.href = response.cafeId ? `/${response.cafeId}` : '/';
console.log(response)
window.location.href = response.cafeIdentifyName ? `/${response.cafeIdentifyName}` : '/';
} else {
setError(true);
}