merge: user profile: only default to "pinned notes" if they exist (!808)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/808

Approved-by: Hazelnoot <acomputerdog@gmail.com>
Approved-by: Marie <github@yuugi.dev>
This commit is contained in:
Marie 2024-12-09 18:36:00 +00:00
commit ee01d5fbdf

View file

@ -260,7 +260,7 @@ const memoDraft = ref(props.user.memo);
const isEditingMemo = ref(false);
const moderationNote = ref(props.user.moderationNote);
const editModerationNote = ref(false);
const noteview = ref<string | null>('pinned');
const noteview = ref<string | null>(props.user.pinnedNotes.length ? 'pinned' : null);
const listenbrainzdata = ref(false);
if (props.user.listenbrainz) {