diff --git a/src/lib/CardsHeader.svelte b/src/lib/CardsHeader.svelte index 49b6ad51..690d5bb3 100644 --- a/src/lib/CardsHeader.svelte +++ b/src/lib/CardsHeader.svelte @@ -10,7 +10,9 @@ let nameElement: any; let settings = JSON.parse(localStorage.getItem("pk-settings")); - $: htmlName = toHTML(item.name); + $: if (item.name) htmlName = toHTML(item.name); + else htmlName = ""; + $: if (settings && settings.appearance.twemoji) { if (nameElement) twemoji.parse(nameElement); }