From b92d780cda3ab7222c4a6ab7323d1dd3f679b514 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 14 Apr 2023 21:16:28 +0200 Subject: [PATCH] chore: formatting --- src/composables/useTitle.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/composables/useTitle.ts b/src/composables/useTitle.ts index f94ebf5d6..6dc398a1e 100644 --- a/src/composables/useTitle.ts +++ b/src/composables/useTitle.ts @@ -1,5 +1,5 @@ -import { computed } from 'vue' -import type { Ref } from 'vue' +import {computed} from 'vue' +import type {Ref} from 'vue' import {useTitle as useTitleVueUse, toRef} from '@vueuse/core' @@ -9,12 +9,12 @@ export function useTitle(...args: UseTitleParameters) { const [newTitle, ...restArgs] = args - const pageTitle = toRef(newTitle) as Ref + const pageTitle = toRef(newTitle) as Ref - const completeTitle = computed(() => + const completeTitle = computed(() => (typeof pageTitle.value === 'undefined' || pageTitle.value === '') - ? 'Vikunja' - : `${pageTitle.value} | Vikunja`, + ? 'Vikunja' + : `${pageTitle.value} | Vikunja`, ) return useTitleVueUse(completeTitle, ...restArgs)