diff options
author | Elizabeth Hunt <lizhunt@amazon.com> | 2025-01-07 10:01:35 -0800 |
---|---|---|
committer | Elizabeth Hunt <lizhunt@amazon.com> | 2025-01-07 10:01:35 -0800 |
commit | 2a08e687f6f33ac2e1526da04dfd982e11b50d36 (patch) | |
tree | 11ee8f8a709f913f06cd6bece20e85866a2b73bf /app/components/WhoisChart.tsx | |
parent | f71e88b234f46d71525f38013a3fb28cee1ba7e8 (diff) | |
download | penguin-new-tab-2a08e687f6f33ac2e1526da04dfd982e11b50d36.tar.gz penguin-new-tab-2a08e687f6f33ac2e1526da04dfd982e11b50d36.zip |
use last updated name
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> |