ok
This commit is contained in:
15
src/App.js
15
src/App.js
@@ -142,20 +142,6 @@ function App() {
|
||||
setGuestSides(sessionLeft.guestSideList);
|
||||
};
|
||||
|
||||
// const checkNotifications = async (userId) => {
|
||||
// try {
|
||||
// const permissionGranted =
|
||||
// await NotificationService.requestNotificationPermission(setModal);
|
||||
// if (permissionGranted) {
|
||||
// await SubscriptionService.subscribeUserToNotifications(userId);
|
||||
// } else {
|
||||
// setModal("blocked_notification");
|
||||
// console.log("req notif");
|
||||
// }
|
||||
// } catch (error) {
|
||||
// console.error("Error handling notifications:", error);
|
||||
// }
|
||||
// };
|
||||
useEffect(() => {
|
||||
if (socket == null) return;
|
||||
|
||||
@@ -227,6 +213,7 @@ function App() {
|
||||
removeLocalStorage("auth");
|
||||
setDeviceType("guestDevice");
|
||||
} else {
|
||||
console.log(data)
|
||||
setUser(data.data.user);
|
||||
if (
|
||||
data.data.user.password == "unsetunsetunset" &&
|
||||
|
||||
Reference in New Issue
Block a user