Skip to content

Commit 5fbd001

Browse files
committed
Conditionally show room of session
1 parent eb0e4e6 commit 5fbd001

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/routes/sessions/[id]/+page.svelte

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,12 @@
4141
</p>
4242
{/if}
4343

44-
<p class="flex gap-3 items-center" style="padding-left:2px">
45-
<Fa icon={faLocationDot} />
46-
{data.session.room}
47-
</p>
44+
{#if data.session.room}
45+
<p class="flex gap-3 items-center" style="padding-left:2px">
46+
<Fa icon={faLocationDot} />
47+
{data.session.room}
48+
</p>
49+
{/if}
4850

4951
{#if isExternalSession(data.session)}
5052
<p class="my-12 whitespace-pre-wrap">

0 commit comments

Comments
 (0)