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( watch(
state, state,
(newState) => { (newState) => {
const characterLimit = (identity.value as Identity).instance const characterLimit =
.configuration.statuses.max_characters; identity.value?.instance.configuration.statuses.max_characters ?? 0;
const characterCount = newState.rawContent.length; const characterCount = newState.rawContent.length;
state.canSend = state.canSend =

View file

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

View file

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