Skip to content

Commit ff06e42

Browse files
author
Vikas Agarwal
committed
2 parents 649699e + 065e812 commit ff06e42

File tree

1 file changed

+1
-1
lines changed
  • src/components/ChallengeEditor/FinalDeliverables-Field

1 file changed

+1
-1
lines changed

src/components/ChallengeEditor/FinalDeliverables-Field/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class FinalDeliverablesField extends Component {
3434
const { challenge, readOnly, removeFileType } = this.props
3535
const fileTypesMetadata = _.find(challenge.metadata, { name: 'fileTypes' })
3636
const fileTypes = (fileTypesMetadata && JSON.parse(fileTypesMetadata.value)) || []
37-
const isDuplicateValue = _.includes(fileTypes, this.state.newFileType.trim())
37+
const isDuplicateValue = _.includes(fileTypes.map((fileType) => fileType.toLowerCase()), this.state.newFileType.toLowerCase().trim())
3838

3939
return (
4040
<React.Fragment>

0 commit comments

Comments
 (0)