diff options
Diffstat (limited to 'app/components/WhoisChart.tsx')
-rw-r--r-- | app/components/WhoisChart.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/components/WhoisChart.tsx b/app/components/WhoisChart.tsx index 43f5eb9..a373e98 100644 --- a/app/components/WhoisChart.tsx +++ b/app/components/WhoisChart.tsx @@ -57,7 +57,7 @@ export default function UpdateChart() { <div className="glass rounded-lg p-6 shadow-lg"> <div className="flex justify-center items-center mb-8"> <h2 className="text-4xl font-bold"> - {greet(data.whois ? data.whois[0].name : "Friend", new Date())} + {greet(data.whois?.at(-1)?.name ?? "Friend", new Date())} </h2> </div> |