File tree 1 file changed +2
-2
lines changed
static/app/views/projectInstall
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ const keyToErrorText: Record<string, string> = {
133
133
export function CreateProject ( ) {
134
134
const api = useApi ( ) ;
135
135
const navigate = useNavigate ( ) ;
136
- const [ errors , setErrors ] = useState ( false ) ;
136
+ const [ errors , setErrors ] = useState ( ) ;
137
137
const organization = useOrganization ( ) ;
138
138
const location = useLocation ( ) ;
139
139
const { createNotificationAction, notificationProps} = useCreateNotificationAction ( ) ;
@@ -339,7 +339,7 @@ export function CreateProject() {
339
339
)
340
340
) ;
341
341
} catch ( error ) {
342
- setErrors ( ! ! error . responseJSON ) ;
342
+ setErrors ( error . responseJSON ) ;
343
343
addErrorMessage ( t ( 'Failed to create project %s' , `${ projectName } ` ) ) ;
344
344
345
345
// Only log this if the error is something other than:
You can’t perform that action at this time.
0 commit comments