Skip to content

Commit 26e6a2b

Browse files
committed
style: conditionally render link for setting context based on user handle presence
1 parent 16e0725 commit 26e6a2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/algora_web/components/core_components.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ defmodule AlgoraWeb.CoreComponents do
230230
</div>
231231
</div>
232232
</:link>
233-
<:link href={~p"/set_context/#{@current_user.handle}"}>
233+
<:link :if={@current_user.handle} href={~p"/set_context/#{@current_user.handle}"}>
234234
<div class="flex items-center whitespace-nowrap">
235235
<.avatar class="mr-3 h-8 w-8">
236236
<.avatar_image src={@current_user.avatar_url} />

0 commit comments

Comments
 (0)