Skip to content

Commit

Permalink
CHE-144 Added some temporary conditional rendering logic based on state
Browse files Browse the repository at this point in the history
  • Loading branch information
brok3turtl3 committed Jun 4, 2024
1 parent d0efa8d commit 8461fad
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ const ApplicationDashboard = (): JSX.Element => {
fetchAggregatedData();
}, [user?._id]);

if (loading) return <div>Loading...</div>;
if (error) return <div>Error: {error}</div>;

return (
<div className="bg-gray-800 p-4 rounded-lg shadow-lg mb-4 w-full max-w-4xl">
<h2 className="font-extrabold text-2xl mb-2">Dashboard</h2>
Expand Down

0 comments on commit 8461fad

Please sign in to comment.