fix: format hostinfo in overview correctly

This commit is contained in:
Aarnav Tale 2025-01-10 14:41:05 +05:30
parent e667e112cb
commit f464c42802
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -86,7 +86,7 @@ export default function Page() {
<thead className="text-gray-500 dark:text-gray-400">
<tr className="text-left uppercase text-xs font-bold px-0.5">
<th className="pb-2">Name</th>
<th className="pb-2">
<th className="pb-2 w-1/4">
<div className="flex items-center gap-x-1">
Addresses
{data.magic ? (

View File

@ -16,7 +16,7 @@ export function getOSInfo(host: HostInfo) {
const formattedOS = formatOS(OS);
// Trim in case OSVersion is empty
return `${formattedOS} ${OSVersion}`.trim();
return `${formattedOS} ${OSVersion ?? ''}`.trim();
}
function formatOS(os?: string) {