From 4e0ffd86191cf96bd4e8a6fa929daa9174c590e1 Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Fri, 21 Oct 2022 12:19:22 +0200 Subject: [PATCH] Handle possible template comment in patch comment body Signed-off-by: Sebastian Martinez --- src/Comment.svelte | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Comment.svelte b/src/Comment.svelte index 725409943..9e6efd7eb 100644 --- a/src/Comment.svelte +++ b/src/Comment.svelte @@ -28,6 +28,11 @@ } }); + const templateComment = ``; + $: source = profile?.avatar || comment.author.urn; $: title = profile?.name || @@ -91,7 +96,7 @@
- {#if comment.body === ""} + {#if comment.body.trim() === "" || comment.body.trim() === templateComment} No description. {:else}