Skip to content

Commit b5661ab

Browse files
committed
fix: dont insert blockquote if status is null
1 parent 988a023 commit b5661ab

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

app/src/lib/components/ui/readme-renderer.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@
7777
node.type === 'element' && (node as Element).tagName === 'h1'
7878
},
7979
content: (status) => {
80+
if (!status) {
81+
return null;
82+
}
8083
return createBlockquote(getStatusMessage(status));
8184
},
8285
data: project.workStatus
@@ -112,7 +115,7 @@
112115
</script>
113116

114117
<Section
115-
class="mx-8 my-8 prose snap-none dark:prose-invert"
118+
class="mx-auto my-8 prose dark:prose-invert"
116119
onclick={(e) => interceptLinkClicks(e)}
117120
role="link"
118121
>

0 commit comments

Comments
 (0)