refactor: ♻️ Make auth store require less null checks

This commit is contained in:
Jesse Wierzbinski 2026-01-09 22:35:46 +01:00
parent 68e23a818a
commit b23ed66401
No known key found for this signature in database
32 changed files with 111 additions and 124 deletions

View file

@ -11,13 +11,10 @@ const authStore = useAuthStore();
<template>
<SidebarHeader>
<SidebarMenu>
<SidebarMenu v-if="authStore.isSignedIn">
<SidebarMenuItem>
<NuxtLink href="/">
<InstanceSmallCard
v-if="authStore.instance"
:instance="authStore.instance"
/>
<InstanceSmallCard :instance="authStore.instance" />
</NuxtLink>
</SidebarMenuItem>
</SidebarMenu>