fix(ui): don't show 0 playcount in slideover (#2714)

pull/2713/head^2
Danshil Kokil Mungur 3 years ago committed by GitHub
parent 475314c87b
commit 29be659512
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -210,7 +210,7 @@ const ManageSlideOver: React.FC<
{hasPermission(Permission.ADMIN) && {hasPermission(Permission.ADMIN) &&
(data.mediaInfo?.serviceUrl || (data.mediaInfo?.serviceUrl ||
data.mediaInfo?.tautulliUrl || data.mediaInfo?.tautulliUrl ||
watchData?.data?.playCount) && ( !!watchData?.data?.playCount) && (
<div> <div>
<h3 className="mb-2 text-xl font-bold"> <h3 className="mb-2 text-xl font-bold">
{intl.formatMessage(messages.manageModalMedia)} {intl.formatMessage(messages.manageModalMedia)}
@ -325,7 +325,7 @@ const ManageSlideOver: React.FC<
{hasPermission(Permission.ADMIN) && {hasPermission(Permission.ADMIN) &&
(data.mediaInfo?.serviceUrl4k || (data.mediaInfo?.serviceUrl4k ||
data.mediaInfo?.tautulliUrl4k || data.mediaInfo?.tautulliUrl4k ||
watchData?.data4k?.playCount) && ( !!watchData?.data4k?.playCount) && (
<div> <div>
<h3 className="mb-2 text-xl font-bold"> <h3 className="mb-2 text-xl font-bold">
{intl.formatMessage(messages.manageModalMedia4k)} {intl.formatMessage(messages.manageModalMedia4k)}

Loading…
Cancel
Save