diff --git a/frontend/src/app/page.tsx b/frontend/src/app/page.tsx index cc36579..4d10a75 100644 --- a/frontend/src/app/page.tsx +++ b/frontend/src/app/page.tsx @@ -23,15 +23,15 @@ export default async function Home() { return ( <> -
+
{/* Stats Container */} -
+
{/* Globe Container */} -
+
diff --git a/frontend/src/components/satelliteData/SatelliteDataHome.tsx b/frontend/src/components/satelliteData/SatelliteDataHome.tsx index 79e58c4..b234413 100644 --- a/frontend/src/components/satelliteData/SatelliteDataHome.tsx +++ b/frontend/src/components/satelliteData/SatelliteDataHome.tsx @@ -42,8 +42,8 @@ export default function SatelliteDataHome() { return (
-
-
+
+

{satelliteInfo ? satelliteInfo.velocity + " km/s" @@ -51,7 +51,7 @@ export default function SatelliteDataHome() {

Velocity

-
+

{satelliteInfo ? satelliteInfo.altitude + " km" @@ -59,7 +59,7 @@ export default function SatelliteDataHome() {

Altitude

-
+

{satelliteInfo ? satelliteInfo.latitudeDeg + "° N" @@ -67,7 +67,7 @@ export default function SatelliteDataHome() {

Latitude

-
+

{satelliteInfo ? satelliteInfo.longitudeDeg + "° E" @@ -77,7 +77,7 @@ export default function SatelliteDataHome() {

-
+

{satelliteInfo diff --git a/frontend/src/components/ui/launchDateCountDown.tsx b/frontend/src/components/ui/launchDateCountDown.tsx index 107855d..b7cc15c 100644 --- a/frontend/src/components/ui/launchDateCountDown.tsx +++ b/frontend/src/components/ui/launchDateCountDown.tsx @@ -49,7 +49,7 @@ const LaunchDateCountDown: React.FC = ({ return () => clearInterval(intervalId); }, [launchDateString]); - if (hasLaunched == undefined) { + if (hasLaunched == undefined || launchDateString == undefined) { return <>; } return ( diff --git a/frontend/src/lib/data/fetchSatelliteInfo.ts b/frontend/src/lib/data/fetchSatelliteInfo.ts index 3a112f8..e004102 100644 --- a/frontend/src/lib/data/fetchSatelliteInfo.ts +++ b/frontend/src/lib/data/fetchSatelliteInfo.ts @@ -82,7 +82,8 @@ export default async function fetchSatelliteInfo({ graphqlData?.data?.satellites?.data[0]?.attributes ?.catalogNumberNORAD ?? undefined, launchDate: - graphqlData.data.satellites?.data[0]?.attributes?.launchDate ?? "", + graphqlData.data.satellites?.data[0]?.attributes?.launchDate ?? + undefined, }; return satelliteInfo;