Skip to content

Commit

Permalink
add return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
vincanger committed Oct 31, 2023
1 parent e6c81c0 commit a0aac19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wasp-ai/src/client/pages/UserPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { HomeButton } from "../components/Header";
export function UserPage({ user }) {
const { data: projects, isLoading, error } = useQuery(getProjectsByUser);

if (isLoading) "Loading Projects...";
if (error) "Error loading projects.";
if (isLoading) return "Loading Projects...";
if (error) return "Error loading projects.";

return (
<div className="container">
Expand Down

0 comments on commit a0aac19

Please sign in to comment.