Skip to content

Commit

Permalink
https://github.com/bonfire-networks/bonfire-app/issues/1047
Browse files Browse the repository at this point in the history
  • Loading branch information
mayel committed Nov 18, 2024
1 parent 7a33d2c commit 6fc3645
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/web/blocks_live_handlers.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Bonfire.UI.Boundaries.Blocks.LiveHandler do
defmodule Bonfire.Boundaries.Blocks.LiveHandler do
use Bonfire.UI.Common.Web, :live_handler
# import Untangle
# import Bonfire.UI.Common
Expand Down
9 changes: 5 additions & 4 deletions lib/web/components/circles/circle_live.sface
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
value={e(@circle, :id, @circle_id)}
/>
<input type="hidden" name={"circle[encircle][#{id}][subject_id]"} value={id}>
{#case member}
{#match %{subject: %{profile: profile}} = member}
{#case debug(member, "dsffdf")}
{#match %{subject: %{profile: %{id: _} = profile}} = member}
<StatelessComponent
module={maybe_component(Bonfire.UI.Me.ProfileItemLive)}
profile={profile}
Expand All @@ -109,7 +109,7 @@
show_summary
show_controls={[]}
/>
{#match %{name: name, icon: icon, username: username}}
{#match %{name: name, icon: icon, username: username} when is_binary(name)}
<StatelessComponent
module={maybe_component(Bonfire.UI.Me.ProfileItemLive)}
profile={%{name: name, icon: icon}}
Expand All @@ -120,7 +120,8 @@
/>
{#match member}
<LinkLive class="text-base font-bold text-base-content">
{e(member, :subject, :named, :name) || e(member, :name, "Unknown")}
{e(member, :subject, :named, :name, nil) || e(member, :named, :name, nil) ||
e(member, :name, "Unknown")}
</LinkLive>
{/case}

Expand Down

0 comments on commit 6fc3645

Please sign in to comment.