Skip to content

Commit 21d7cfb

Browse files
committed
fix: improve error handling in ContactItem component
1 parent 2832655 commit 21d7cfb

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/views/contact/ContactItem.tsx

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,8 @@ export default function ContactItem({ contact }: ContactItemProps) {
6262
});
6363

6464
if (isError) {
65-
return (
66-
<div className="contents">
67-
<div className="col-span-6 flex items-center justify-center py-4 text-red-500">
68-
Error loading contact details
69-
</div>
70-
</div>
71-
);
65+
// TODO: Handle error more gracefully. Do not display error in the UI.
66+
console.error('Error loading contact details:', contact.address);
7267
}
7368

7469
return (

0 commit comments

Comments
 (0)