Skip to content

Commit 4473102

Browse files
priscilawebdevroaga
authored andcommitted
fix(project-creation): Render request errors at the bottom (#92098)
closes TET-443
1 parent c993d76 commit 4473102

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

static/app/views/projectInstall/createProject.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const keyToErrorText: Record<string, string> = {
133133
export function CreateProject() {
134134
const api = useApi();
135135
const navigate = useNavigate();
136-
const [errors, setErrors] = useState(false);
136+
const [errors, setErrors] = useState();
137137
const organization = useOrganization();
138138
const location = useLocation();
139139
const {createNotificationAction, notificationProps} = useCreateNotificationAction();
@@ -339,7 +339,7 @@ export function CreateProject() {
339339
)
340340
);
341341
} catch (error) {
342-
setErrors(!!error.responseJSON);
342+
setErrors(error.responseJSON);
343343
addErrorMessage(t('Failed to create project %s', `${projectName}`));
344344

345345
// Only log this if the error is something other than:

0 commit comments

Comments
 (0)