diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index f0f492d4f..4e04a3c93 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -126,7 +126,9 @@ os.api("admin/abuse-user-reports", { }); if (defaultStore.state.showAdminUpdates) { - updateAvailable = await isUpdateAvailable(); + isUpdateAvailable().then(res => { + updateAvailable = res; + }); } const NARROW_THRESHOLD = 600; diff --git a/packages/client/src/ui/_common_/navbar.vue b/packages/client/src/ui/_common_/navbar.vue index 058ed0eef..fa4cfe8a8 100644 --- a/packages/client/src/ui/_common_/navbar.vue +++ b/packages/client/src/ui/_common_/navbar.vue @@ -197,7 +197,9 @@ if ($i?.isAdmin) { }); if (defaultStore.state.showAdminUpdates) { - updateAvailable = await isUpdateAvailable(); + isUpdateAvailable().then(res => { + updateAvailable = res; + }); } }