diff --git a/app/(main)/ClientComponents/detail/ServerIPInfo.tsx b/app/(main)/ClientComponents/detail/ServerIPInfo.tsx index c2ff3e1..1543e1d 100644 --- a/app/(main)/ClientComponents/detail/ServerIPInfo.tsx +++ b/app/(main)/ClientComponents/detail/ServerIPInfo.tsx @@ -23,7 +23,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { return ( <>
- {data.asn.autonomous_system_organization && ( + {data.asn?.autonomous_system_organization && (
@@ -33,7 +33,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.asn.autonomous_system_number && ( + {data.asn?.autonomous_system_number && (
@@ -43,7 +43,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.registered_country?.names.en && ( + {data.city?.registered_country?.names.en && (
@@ -53,7 +53,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.country?.iso_code && ( + {data.city?.country?.iso_code && (
@@ -63,7 +63,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.city?.names.en && ( + {data.city?.city?.names.en && (
@@ -73,7 +73,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.location?.longitude && ( + {data.city?.location?.longitude && (
@@ -83,7 +83,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.location?.latitude && ( + {data.city?.location?.latitude && (
@@ -93,7 +93,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.location?.time_zone && ( + {data.city?.location?.time_zone && (
@@ -103,7 +103,7 @@ export default function ServerIPInfo({ server_id }: { server_id: number }) { )} - {data.city.postal && ( + {data.city?.postal && (
diff --git a/components/ServerCard.tsx b/components/ServerCard.tsx index 41bd1c9..8f2b376 100644 --- a/components/ServerCard.tsx +++ b/components/ServerCard.tsx @@ -130,34 +130,41 @@ export default function ServerCard({ serverInfo }: { serverInfo: NezhaAPISafe }) ) : ( - -
+ - -
- {showFlag ? : null} -
-
-

- {name} -

-
-
-
+ +
+ {showFlag ? : null} +
+
+

+ {name} +

+
+
+
+ ) }