fix: 🐛 Fix dev breaking when signed out

This commit is contained in:
Jesse Wierzbinski 2025-07-11 05:05:20 +02:00
parent 53b71afdd5
commit f8e219889c
3 changed files with 5 additions and 5 deletions

View file

@ -46,8 +46,8 @@ export const state = reactive<ComposerState>({
watch(
state,
(newState) => {
const characterLimit = (identity.value as Identity).instance
.configuration.statuses.max_characters;
const characterLimit =
identity.value?.instance.configuration.statuses.max_characters ?? 0;
const characterCount = newState.rawContent.length;
state.canSend =

View file

@ -9,7 +9,7 @@
</SidebarProvider>
<MobileNavbar v-if="identity" />
<Preferences />
<ComposerDialog />
<ComposerDialog v-if="identity" />
</template>
<script setup lang="ts">

View file

@ -1,6 +1,6 @@
<template>
<slot />
<ComposerDialog />
<ComposerDialog v-if="identity" />
</template>
<script lang="ts" setup>