Skip to content

Commit 527c626

Browse files
submitting is a better word
1 parent 10e3afc commit 527c626

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

static/app/views/projectInstall/createProject.tsx

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export function CreateProject() {
197197
const api = useApi();
198198
const navigate = useNavigate();
199199
const [errors, setErrors] = useState();
200-
const [loading, setLoading] = useState(false);
200+
const [submitting, setSubmitting] = useState(false);
201201
const organization = useOrganization();
202202
const location = useLocation();
203203
const {createNotificationAction, notificationProps} = useCreateNotificationAction();
@@ -299,7 +299,10 @@ export function CreateProject() {
299299
].filter(value => value).length;
300300

301301
const canSubmitForm =
302-
!loading && !createProject.isPending && canUserCreateProject && formErrorCount === 0;
302+
!submitting &&
303+
!createProject.isPending &&
304+
canUserCreateProject &&
305+
formErrorCount === 0;
303306

304307
const submitTooltipText = getSubmitTooltipText({
305308
...missingValues,
@@ -349,7 +352,7 @@ export function CreateProject() {
349352
let notificationRuleId: string | undefined = undefined;
350353

351354
try {
352-
setLoading(true);
355+
setSubmitting(true);
353356
project = await createProject.mutateAsync({
354357
name: projectName,
355358
platform: selectedPlatform,
@@ -427,7 +430,7 @@ export function CreateProject() {
427430
notificationRuleId,
428431
});
429432
} finally {
430-
setLoading(false);
433+
setSubmitting(false);
431434
}
432435
},
433436
[organization, createProject, setCreatedProject, navigate, api, createRules]

0 commit comments

Comments
 (0)