mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
usage of releaseInfo fixed in MetaPreview
This commit is contained in:
parent
21a428d5b8
commit
3dcfdb5c20
1 changed files with 1 additions and 1 deletions
|
|
@ -42,7 +42,7 @@ const MetaPreview = ({ className, compact, id, type, name, logo, background, dur
|
|||
const [shareModalOpen, openShareModal, closeShareModal] = useBinaryState(false);
|
||||
const releaseInfoText = React.useMemo(() => {
|
||||
const releasedDate = new Date(released);
|
||||
return releaseInfo.length > 0 ?
|
||||
return typeof releaseInfo === 'string' && releaseInfo.length > 0 ?
|
||||
releaseInfo
|
||||
:
|
||||
!isNaN(releasedDate.getFullYear()) ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue