fix: misc issues

This commit is contained in:
Jannat Patel
2024-06-07 11:37:46 +05:30
parent 2744002390
commit 103ecef9f4
7 changed files with 49 additions and 50 deletions

View File

@@ -154,7 +154,7 @@ router.beforeEach(async (to, from, next) => {
try {
if (isLoggedIn) {
await userResource.reload()
await userResource.promise
}
if (
isLoggedIn &&
@@ -163,7 +163,7 @@ router.beforeEach(async (to, from, next) => {
to.name == 'Notifications' ||
to.name == 'Badge')
) {
await allUsers.reload()
await allUsers.promise
}
} catch (error) {
isLoggedIn = false