Skip to content

Commit 10167af

Browse files
committed
fmt
1 parent 23528ca commit 10167af

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,20 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
9999
<ErrorSummary
100100
error={props.createWorkspaceErrors[CreateWorkspaceErrors.GET_TEMPLATES_ERROR]}
101101
/>
102-
) : (
103-
null
104-
)}
102+
) : null}
105103
{props.createWorkspaceErrors[CreateWorkspaceErrors.GET_TEMPLATE_SCHEMA_ERROR] ? (
106104
<ErrorSummary
107105
error={props.createWorkspaceErrors[CreateWorkspaceErrors.GET_TEMPLATE_SCHEMA_ERROR]}
108106
/>
109-
) : (
110-
null
111-
)}
107+
) : null}
112108
</Stack>
113109
)
114110
}
115111

116-
const canSubmit = props.quota && props.quota.user_workspace_limit > 0 && props.quota.user_workspace_count < props.quota.user_workspace_limit
112+
const canSubmit =
113+
props.quota &&
114+
props.quota.user_workspace_limit > 0 &&
115+
props.quota.user_workspace_count < props.quota.user_workspace_limit
117116

118117
return (
119118
<FullPageForm title="Create workspace" onCancel={props.onCancel}>
@@ -123,9 +122,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
123122
<ErrorSummary
124123
error={props.createWorkspaceErrors[CreateWorkspaceErrors.CREATE_WORKSPACE_ERROR]}
125124
/>
126-
) : (
127-
null
128-
)}
125+
) : null}
129126
<TextField
130127
disabled
131128
fullWidth
@@ -172,9 +169,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
172169
props.createWorkspaceErrors[CreateWorkspaceErrors.GET_WORKSPACE_QUOTA_ERROR]
173170
}
174171
/>
175-
) : (
176-
null
177-
)}
172+
) : null}
178173

179174
<FormFooter
180175
onCancel={props.onCancel}

0 commit comments

Comments
 (0)