Skip to content

Commit

Permalink
Remove unnecessary nesting on error page
Browse files Browse the repository at this point in the history
  • Loading branch information
jb3 committed Aug 17, 2024
1 parent 2653058 commit fee4b52
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions thallium-frontend/src/pages/ErrorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,12 @@ const LandingPage = () => {
isUnexpected = true;
}

return (
<>
<div>
<Card title={title}>
{isUnexpected && <strong>An error occurred:</strong>}
<p>
{message}
</p>
</Card>
</div>
</>
);
return <Card title={title}>
{isUnexpected && <strong>An error occurred:</strong>}
<p>
{message}
</p>
</Card>;
};

export default LandingPage;

0 comments on commit fee4b52

Please sign in to comment.