Fix chats page title occasionally showing as undefined

This commit is contained in:
Laura Hausmann 2023-08-19 14:52:29 +02:00
parent aafe77c5c8
commit 9948df5670
Signed by: zotan
GPG key ID: D044E84C5BE01605

View file

@ -337,7 +337,7 @@ onMounted(() => {
fetch();
definePageMetadata(
computed(() => ({
title: group != null ? group.name : user?.name,
title: group != null ? group.name : user?.name ?? 'Chat',
icon: "ph-chats-teardrop-bold ph-lg",
})),
);