diff --git a/src/components/overlays/detailsModal/components/sections/DetailsBody.tsx b/src/components/overlays/detailsModal/components/sections/DetailsBody.tsx index ed2259f9..e229e60f 100644 --- a/src/components/overlays/detailsModal/components/sections/DetailsBody.tsx +++ b/src/components/overlays/detailsModal/components/sections/DetailsBody.tsx @@ -103,10 +103,8 @@ export function DetailsBody({ if (hasDigitalRelease) { const digitalReleaseDate = new Date(releaseInfo.digital_release_date!); - const twoDaysAfter = new Date(digitalReleaseDate); - twoDaysAfter.setDate(twoDaysAfter.getDate() + 2); - if (new Date() >= twoDaysAfter) { + if (new Date() >= digitalReleaseDate) { return HD; } } @@ -115,10 +113,8 @@ export function DetailsBody({ const theatricalReleaseDate = new Date( releaseInfo.theatrical_release_date!, ); - const fortyFiveDaysAfter = new Date(theatricalReleaseDate); - fortyFiveDaysAfter.setDate(fortyFiveDaysAfter.getDate() + 45); - if (new Date() >= fortyFiveDaysAfter) { + if (new Date() >= theatricalReleaseDate) { return (
HD diff --git a/src/pages/discover/components/FeaturedCarousel.tsx b/src/pages/discover/components/FeaturedCarousel.tsx index 90287d1f..c3ac8a7b 100644 --- a/src/pages/discover/components/FeaturedCarousel.tsx +++ b/src/pages/discover/components/FeaturedCarousel.tsx @@ -573,10 +573,8 @@ export function FeaturedCarousel({ if (hasDigitalRelease) { const digitalReleaseDate = new Date(releaseInfo.digital_release_date!); - const twoDaysAfter = new Date(digitalReleaseDate); - twoDaysAfter.setDate(twoDaysAfter.getDate() + 2); - if (new Date() >= twoDaysAfter) { + if (new Date() >= digitalReleaseDate) { return HD; } } @@ -585,10 +583,8 @@ export function FeaturedCarousel({ const theatricalReleaseDate = new Date( releaseInfo.theatrical_release_date!, ); - const fortyFiveDaysAfter = new Date(theatricalReleaseDate); - fortyFiveDaysAfter.setDate(fortyFiveDaysAfter.getDate() + 45); - if (new Date() >= fortyFiveDaysAfter) { + if (new Date() >= theatricalReleaseDate) { return (
HD