From 63fecd459230154f48da1b3ae8ecf91dc43840a3 Mon Sep 17 00:00:00 2001 From: Rishi Ghan Date: Fri, 8 Oct 2021 07:57:44 -0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20Fixed=20an=20undefined=20check?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/components/LibraryGrid.tsx | 9 ++++++++- src/client/components/RecentlyImported.tsx | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/client/components/LibraryGrid.tsx b/src/client/components/LibraryGrid.tsx index c832b87..0df6a98 100644 --- a/src/client/components/LibraryGrid.tsx +++ b/src/client/components/LibraryGrid.tsx @@ -85,7 +85,14 @@ export const LibraryGrid = (libraryGridProps: ILibraryGridProps) => { sourcedMetadata.comicvine.volumeInformation.description, ), ) ? ( - TPB + + { + detectIssueTypes( + sourcedMetadata.comicvine.volumeInformation + .description, + ).displayName + } + ) : null} diff --git a/src/client/components/RecentlyImported.tsx b/src/client/components/RecentlyImported.tsx index e69dc0f..fc7561e 100644 --- a/src/client/components/RecentlyImported.tsx +++ b/src/client/components/RecentlyImported.tsx @@ -66,11 +66,13 @@ export const RecentlyImported = ({ )} + {/* Raw file presence */} {isNil(rawFileDetails) && ( )} + {/* Issue type */} {!isUndefined(sourcedMetadata.comicvine) && !isNil( detectIssueTypes(