From 2d4d37297c312a2b7c4fd2453e9b485ac44769f7 Mon Sep 17 00:00:00 2001 From: Fernando Falci Date: Wed, 21 Feb 2024 10:02:51 +0100 Subject: [PATCH] fix: handle error --- src/App.tsx | 2 +- src/Status.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 33c1bf7..0766d4f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -35,7 +35,7 @@ function App() { umami.track('check', { name, token }); setLoading(true); const { data } = await refetch(); - setAddr(data.addr); + setAddr(data?.addr || ''); setLoading(false); }; diff --git a/src/Status.tsx b/src/Status.tsx index 76d1778..414eaa1 100644 --- a/src/Status.tsx +++ b/src/Status.tsx @@ -14,7 +14,7 @@ export const Status: FC = ({ addr, loading, name, setValue }) => ( className="text-sm text-gray-500 cursor-pointer" onClick={() => setValue('iamfernando')} > - Example: iamfernando + Example: falci.me )} {!addr && !loading && name && (