Skip to content

Commit

Permalink
fix: handle error
Browse files Browse the repository at this point in the history
  • Loading branch information
Falci committed Feb 21, 2024
1 parent c877511 commit 2d4d372
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};

Expand Down
2 changes: 1 addition & 1 deletion src/Status.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const Status: FC<Props> = ({ addr, loading, name, setValue }) => (
className="text-sm text-gray-500 cursor-pointer"
onClick={() => setValue('iamfernando')}
>
Example: iamfernando
Example: falci.me
</span>
)}
{!addr && !loading && name && (
Expand Down

0 comments on commit 2d4d372

Please sign in to comment.