diff --git a/src/hooks/usePublicNoteList.hook.ts b/src/hooks/usePublicNoteList.hook.ts index 5ae367a..7389bc3 100644 --- a/src/hooks/usePublicNoteList.hook.ts +++ b/src/hooks/usePublicNoteList.hook.ts @@ -43,7 +43,7 @@ export function usePublicNoteList(options?: UsePublicNoteListOptions) { }, new Map()) const getAuthor = (did: string) => - authors.value.has(did) ? authors.value.get(did)?.handle : "" + authors.value.has(did) ? authors.value.get(did)!.handle : "" const filteredNotes = computed(() => { const filter = options?.followsFilter?.value diff --git a/src/views/PublicNoteListView.vue b/src/views/PublicNoteListView.vue index ce91963..351d86c 100644 --- a/src/views/PublicNoteListView.vue +++ b/src/views/PublicNoteListView.vue @@ -14,9 +14,12 @@ const router = useRouter() const { did, isLoggedIn } = useATProtoLogin() const { follows } = useFollows(did) -const tab = computed<'all' | 'following'>({ - get: () => route.query.tab === 'following' ? 'following' : 'all', - set: (value) => router.replace({ query: { ...route.query, tab: value === 'all' ? undefined : value } }), +const tab = computed<"all" | "following">({ + get: () => (route.query.tab === "following" ? "following" : "all"), + set: (value) => + router.replace({ + query: { ...route.query, tab: value === "all" ? undefined : value }, + }), }) const all = usePublicNoteList() @@ -27,14 +30,25 @@ const following = usePublicNoteList({ followsFilter: follows })
-

Remanso notes

+

Remanso icon

- All - Following - + All + Following