Skip to content

Commit

Permalink
fix(marketing): only check servers if logged in
Browse files Browse the repository at this point in the history
  • Loading branch information
he3als committed Oct 30, 2024
1 parent d681372 commit a01802b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/frontend/src/pages/servers/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ const pauseTime = 2000;
const { data: hasServers } = await useAsyncData("ServerListCountCheck", async () => {
try {
if (!auth.value.user) return false;
const response = await usePyroFetch("servers");
return response.servers && response.servers.length > 0;
} catch {
Expand Down

0 comments on commit a01802b

Please sign in to comment.