From a676a4742b2c303a7e49e3a5a6e42e5aa0b5a5d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chris=20Dos=C3=A9?= Date: Sat, 5 Aug 2023 10:27:15 -0700 Subject: [PATCH] Empty authors/narrators shouldn't show headings --- lib/ambry_web/live/person_live.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ambry_web/live/person_live.ex b/lib/ambry_web/live/person_live.ex index d1248342..93ed7307 100644 --- a/lib/ambry_web/live/person_live.ex +++ b/lib/ambry_web/live/person_live.ex @@ -43,7 +43,7 @@ defmodule AmbryWeb.PersonLive do -
+
<.books_header> Written by <%= name_for_header(author, @person) %> @@ -51,7 +51,7 @@ defmodule AmbryWeb.PersonLive do <.book_tiles books={author.books} />
-
+
<.books_header> Narrated by <%= name_for_header(narrator, @person) %>