mirror of
https://github.com/versia-pub/frontend.git
synced 2026-03-13 03:29:16 +01:00
refactor: ♻️ Make auth store require less null checks
This commit is contained in:
parent
68e23a818a
commit
b23ed66401
32 changed files with 111 additions and 124 deletions
|
|
@ -141,7 +141,7 @@ const composerKey = props.relation
|
|||
const store = useComposerStore(composerKey)();
|
||||
const authStore = useAuthStore();
|
||||
const charactersLeft = computed(() => {
|
||||
const max = authStore.instance?.configuration.statuses.max_characters ?? 0;
|
||||
const max = authStore.instance.configuration.statuses.max_characters;
|
||||
|
||||
return max - store.rawContent.length;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue