From 2a08e687f6f33ac2e1526da04dfd982e11b50d36 Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <lizhunt@amazon.com>
Date: Tue, 7 Jan 2025 10:01:35 -0800
Subject: use last updated name

---
 app/components/WhoisChart.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'app/components/WhoisChart.tsx')

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>
 
-- 
cgit v1.2.3-70-g09d2

