Skip to content

Commit

Permalink
Add error logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JiashuHarryHuang committed Apr 23, 2024
1 parent 1a52c97 commit 0c2abca
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion components/Table/EventTable/EventTableImpl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ const EventTableImpl = () => {
};

// check for errors and loading
if (error) return <div>Failed to load event table</div>;
if (error) {
console.log(error);
return <div>Failed to load event table</div>;
}
if (isLoading) return <div>Loading...</div>;

// check for errors and loading
Expand Down

0 comments on commit 0c2abca

Please sign in to comment.