Improve logging, fix bugs

This commit is contained in:
2025-09-21 14:27:49 +03:00
Unverified
parent b53deae633
commit fcb567a198
2 changed files with 5 additions and 4 deletions
+4 -3
View File
@@ -66,6 +66,8 @@ export default function LoginScreen() {
console.error("Key setup failed:", e);
}
setCurrentPage("chat");
// Initialize push notifications
try {
if (pushNotificationManager.isSupported()) {
@@ -81,13 +83,12 @@ export default function LoginScreen() {
} else {
console.log("Push notification permission denied");
}
} else {
console.log("Not supported");
}
} catch (e) {
console.error("Push notification setup failed:", e);
}
setCurrentPage("chat");
// initializeProfile(); // Initialize profile after login
} else {
const data: ErrorResponse = await response.json();
showAlert("danger", data.message || "Неверное имя пользователя или пароль");