Skip to content

Commit 4955b4f

Browse files
committed
fmt
1 parent 3f09989 commit 4955b4f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

site/src/pages/CreateWorkspacePage/CreateWorkspacePageView.tsx

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -102,21 +102,20 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
102102
<ErrorSummary
103103
error={props.createWorkspaceErrors[CreateWorkspaceErrors.GET_TEMPLATES_ERROR]}
104104
/>
105-
) : (
106-
null
107-
)}
105+
) : null}
108106
{props.createWorkspaceErrors[CreateWorkspaceErrors.GET_TEMPLATE_SCHEMA_ERROR] ? (
109107
<ErrorSummary
110108
error={props.createWorkspaceErrors[CreateWorkspaceErrors.GET_TEMPLATE_SCHEMA_ERROR]}
111109
/>
112-
) : (
113-
null
114-
)}
110+
) : null}
115111
</Stack>
116112
)
117113
}
118114

119-
const canSubmit = props.quota && props.quota.user_workspace_limit > 0 && props.quota.user_workspace_count < props.quota.user_workspace_limit
115+
const canSubmit =
116+
props.quota &&
117+
props.quota.user_workspace_limit > 0 &&
118+
props.quota.user_workspace_count < props.quota.user_workspace_limit
120119

121120
return (
122121
<FullPageForm title="Create workspace" onCancel={props.onCancel}>
@@ -182,9 +181,7 @@ export const CreateWorkspacePageView: FC<React.PropsWithChildren<CreateWorkspace
182181
props.createWorkspaceErrors[CreateWorkspaceErrors.GET_WORKSPACE_QUOTA_ERROR]
183182
}
184183
/>
185-
) : (
186-
null
187-
)}
184+
) : null}
188185

189186
<FormFooter
190187
onCancel={props.onCancel}

0 commit comments

Comments
 (0)