From f74c4aca42e7c13a7ebed06fd38849c38af36667 Mon Sep 17 00:00:00 2001 From: Pas <74743263+Pasithea0@users.noreply.github.com> Date: Tue, 4 Nov 2025 17:12:08 -0700 Subject: [PATCH] show HD right away from release api --- .../detailsModal/components/sections/DetailsBody.tsx | 8 ++------ src/pages/discover/components/FeaturedCarousel.tsx | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) 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 (