Skip to content

Commit

Permalink
fix: Fix satellite page loading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Thibault Camlane committed Jun 10, 2025
1 parent dd28c2b commit b95030c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions frontend/src/app/satellites/[satelliteSlug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,11 @@ export default async function SatelliteInfoPage({
: null}
</p>
</div>
<div>
<SatelliteDataHome satelliteNum={noradId} />
</div>
{satAttributes.missionStatus === "ON ORBIT" ? (
<div>
<SatelliteDataHome satelliteNum={noradId} />
</div>
) : null}
</div>
{/* Image container */}
<div className="w-full border-t-2 border-gray-600 xl:border-t-0">
Expand Down Expand Up @@ -149,7 +151,7 @@ export default async function SatelliteInfoPage({
) : null}

{/* Container for map */}
{noradId ? (
{noradId && satAttributes.missionStatus === "ON ORBIT" ? (
<div className="mt-6 w-full">
<Map2d satNum={noradId} />
</div>
Expand Down

0 comments on commit b95030c

Please sign in to comment.