summaryrefslogtreecommitdiff
path: root/src/components/LallansIssueContributions.astro
diff options
context:
space:
mode:
authorJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 17:22:09 +0100
committerJoe Carstairs <65492573+Sycamost@users.noreply.github.com>2023-08-12 17:22:09 +0100
commitb99397f884e41a1018a217c6eb116ed00f922a4f (patch)
tree5c947c4811cc2a8848a8e742198ce5cc48e5a39b /src/components/LallansIssueContributions.astro
parent37020d847e66e57913d493716e98f4dcab749262 (diff)
Improves conditional rendering in Lallans contributions
Diffstat (limited to 'src/components/LallansIssueContributions.astro')
-rw-r--r--src/components/LallansIssueContributions.astro4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/LallansIssueContributions.astro b/src/components/LallansIssueContributions.astro
index 73634a2..2888ca6 100644
--- a/src/components/LallansIssueContributions.astro
+++ b/src/components/LallansIssueContributions.astro
@@ -19,9 +19,9 @@ const t = translate(locale);
{ contributions.map(contribution => (
<li>
<span class="italic">{ contribution.title }</span>
- { 'author' in contribution ? (
+ { 'author' in contribution && (
<span> { t(tSite, 'by') } { contribution.author }</span>
- ) : (<></>)
+ )
}
</li>
))}