From e4f17524eaeb1d3f2a14d29921bcf797117988b2 Mon Sep 17 00:00:00 2001 From: KKlochko Date: Tue, 3 Jun 2025 19:30:00 +0300 Subject: [PATCH] Update the card components to check a dbi_server existence by the id. --- .../components/my_components/author_card.ex | 2 +- .../components/my_components/book_card.ex | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/decentralised_book_index_web/components/my_components/author_card.ex b/lib/decentralised_book_index_web/components/my_components/author_card.ex index b311d06..0069fb1 100644 --- a/lib/decentralised_book_index_web/components/my_components/author_card.ex +++ b/lib/decentralised_book_index_web/components/my_components/author_card.ex @@ -10,7 +10,7 @@ defmodule DecentralisedBookIndexWeb.Components.MyComponents.AuthorCard do def author_card(assigns) do ~H"""
- <%= if @current_user != nil and Role.can_moderate?(@current_user.role) and is_nil(@author.dbi_server) do %> + <%= if @current_user != nil and Role.can_moderate?(@current_user.role) and is_nil(@author.dbi_server_id) do %>