From 19829e54eb67150e15c0d46e0e40afad95e337c2 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Fri, 30 May 2025 17:58:00 +0200 Subject: [PATCH] Hide artist/author if missing --- src/modules/manga/components/MangaDetails.tsx | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/modules/manga/components/MangaDetails.tsx b/src/modules/manga/components/MangaDetails.tsx index a0c70c4c..dbcda37d 100644 --- a/src/modules/manga/components/MangaDetails.tsx +++ b/src/modules/manga/components/MangaDetails.tsx @@ -163,10 +163,6 @@ function getSourceName(source?: Pick | null): return source.displayName ?? source.id; } -function getValueOrUnknown(val?: T | null): T | string { - return val ?? translate('global.label.unknown'); -} - const LibrarySearchLink = ({ query, children }: { query: string; children?: ReactNode }) => ( - - + {manga.author && ( + + )} + {manga.artist && ( + + )}