Skip to content

Commit

Permalink
Fix Whois failing to load ✅
Browse files Browse the repository at this point in the history
  • Loading branch information
wotschofsky committed Nov 5, 2023
1 parent 14760b3 commit 84470ed
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions app/lookup/[domain]/whois/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,20 @@ const WhoisResultsPage: FC<WhoisResultsPageProps> = async ({

return (
<>
{Object.keys(data).map((key) => (
<Fragment key={key}>
<h2 className="mb-4 mt-8 text-3xl font-bold tracking-tight">{key}</h2>
<code>
{data[key].split('\n').map((line, index) => (
<p key={index}>{line}</p>
))}
</code>
</Fragment>
))}
{Object.entries(data)
.filter(([_key, value]) => Boolean(value))
.map(([key, value]) => (
<Fragment key={key}>
<h2 className="mb-4 mt-8 text-3xl font-bold tracking-tight">
{key}
</h2>
<code>
{value.split('\n').map((line, index) => (
<p key={index}>{line}</p>
))}
</code>
</Fragment>
))}
</>
);
};
Expand Down

1 comment on commit 84470ed

@vercel
Copy link

@vercel vercel bot commented on 84470ed Nov 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.