diff --git a/backend/dbLocation.sqlite b/backend/dbLocation.sqlite index 4c7caa2..0bf0c2f 100644 Binary files a/backend/dbLocation.sqlite and b/backend/dbLocation.sqlite differ diff --git a/frontend/src/app/satellites/[satelliteSlug]/page.tsx b/frontend/src/app/satellites/[satelliteSlug]/page.tsx index a0bd792..f867f0b 100644 --- a/frontend/src/app/satellites/[satelliteSlug]/page.tsx +++ b/frontend/src/app/satellites/[satelliteSlug]/page.tsx @@ -59,11 +59,6 @@ export default async function SatelliteInfoPage({ // Get the satellite attributes let satAttributes = graphqlData?.data?.satellites?.data[0]?.attributes; - // If the satellite is not found return a message - if (!satAttributes?.catalogNumberNORAD) { - return
Satellite not found
; - } - // Get the NORAD ID let noradId = Number(satAttributes?.catalogNumberNORAD) as SatelliteNumber; @@ -89,56 +84,58 @@ export default async function SatelliteInfoPage({ {/* Container for satname, stats and sat image */} - {noradId ? ( -
- {/* Stats Container */} -
-
+ +
+ {/* Stats Container */} +
+
+
+

NORAD ID:

{noradId ? ( -
-

NORAD ID:

- - {noradId} - -
- ) : null} -

- {satAttributes?.massKg - ? "Mass: " + - satAttributes?.massKg + - " kg" - : null} -

+ + {noradId} + + ) : ( + + No NORAD ID has been assigned yet{" "} + + )}
- {satAttributes.missionStatus === "IN ORBIT" ? ( -
- -
- ) : null} + +

+ {satAttributes?.massKg + ? "Mass: " + satAttributes?.massKg + " kg" + : null} +

- {/* Image container */} -
-
- {imageURL ? ( - {satAttributes?.name - ) : null} + {satAttributes?.missionStatus === "IN ORBIT" ? ( +
+
+ ) : null} +
+ {/* Image container */} +
+
+ {imageURL ? ( + {satAttributes?.name + ) : null}
- ) : null} +
{/* Container for launch date */} - {satAttributes?.launchDate ? ( + {noradId && satAttributes?.launchDate ? (