Skip to content

Commit 69fab82

Browse files
committed
fix: make error message conditional
1 parent 831d110 commit 69fab82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/UserSettingsPage/AccountPage/AccountPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export const AccountPage: FC = () => {
6161
<div
6262
css={{ display: "flex", flexFlow: "column nowrap", rowGap: "24px" }}
6363
>
64-
{<ErrorAlert error={groupsQuery.error} />}
64+
{groupsQuery.isError && <ErrorAlert error={groupsQuery.error} />}
6565

6666
<Grid container columns={{ xs: 1, md: 2 }} spacing="16px">
6767
{groupsQuery.data?.map((group) => (

0 commit comments

Comments
 (0)