Skip to content

Commit

Permalink
CreateImageWizard: Make sure to check the right error
Browse files Browse the repository at this point in the history
  • Loading branch information
croissanne committed Dec 18, 2020
1 parent 5adb8b5 commit 3633ff1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ const WizardStepUploadAWS = (props) => {
</p>
<FormGroup isRequired label="AWS account ID" fieldId="aws-account-id"
helperTextInvalid={ (props.errors['aws-account-id'] && props.errors['aws-account-id'].value) || '' }
validated={ (props.errors['amazon-access-id'] && 'error') || 'default' }>
validated={ (props.errors['aws-account-id'] && 'error') || 'default' }>
<TextInput value={ props.upload.options.share_with_accounts || '' }
type="text" aria-label="amazon access key ID" id="aws-account-id"
type="text" aria-label="AWS account ID" id="aws-account-id"
data-testid="aws-account-id" isRequired
onChange={ value => props.setUploadOptions(Object.assign(props.upload.options, { share_with_accounts: [ value ]})) } />
</FormGroup>
Expand Down

0 comments on commit 3633ff1

Please sign in to comment.