🔧 Fixed an undefined check

This commit is contained in:
2021-10-08 07:57:44 -07:00
parent 478e105e48
commit 63fecd4592
2 changed files with 10 additions and 1 deletions

View File

@@ -85,7 +85,14 @@ export const LibraryGrid = (libraryGridProps: ILibraryGridProps) => {
sourcedMetadata.comicvine.volumeInformation.description,
),
) ? (
<span className="tag is-warning">TPB</span>
<span className="tag is-warning">
{
detectIssueTypes(
sourcedMetadata.comicvine.volumeInformation
.description,
).displayName
}
</span>
) : null}
</div>
</Card>

View File

@@ -66,11 +66,13 @@ export const RecentlyImported = ({
<img src="/dist/img/cvlogo.svg" />
</span>
)}
{/* Raw file presence */}
{isNil(rawFileDetails) && (
<span className="icon has-text-info">
<i className="fas fa-adjust" />
</span>
)}
{/* Issue type */}
{!isUndefined(sourcedMetadata.comicvine) &&
!isNil(
detectIssueTypes(