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

@ -56,13 +56,13 @@ useSeoMeta({
titleTemplate: (titleChunk) => {
return titleChunk ? `${titleChunk} · Versia` : "Versia";
},
title: computed(() => authStore.instance?.title ?? ""),
ogImage: computed(() => authStore.instance?.banner?.url),
twitterTitle: computed(() => authStore.instance?.title ?? ""),
title: computed(() => authStore.instanceOptional?.title ?? ""),
ogImage: computed(() => authStore.instanceOptional?.banner?.url),
twitterTitle: computed(() => authStore.instanceOptional?.title ?? ""),
twitterDescription: computed(() =>
convert(description.value?.content ?? ""),
),
twitterImage: computed(() => authStore.instance?.banner?.url),
twitterImage: computed(() => authStore.instanceOptional?.banner?.url),
description: computed(() => convert(description.value?.content ?? "")),
ogDescription: computed(() => convert(description.value?.content ?? "")),
ogSiteName: "Versia",