Skip to content

Commit b8ca07e

Browse files
author
vikasrohit
authored
Merge pull request #921 from maxceem/issue-784
fix: integers as maximum number of submission
2 parents 27d896f + 42e3bbf commit b8ca07e

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class MaximumSubmissionsField extends Component {
7575
placeholder=''
7676
value={count}
7777
maxLength='200'
78-
onChange={(e) => onUpdateMetadata('submissionLimit', e.target.value, 'count')}
78+
onChange={(e) => onUpdateMetadata('submissionLimit', e.target.value.replace(/[^\d]+/g, ''), 'count')}
7979
/>
8080
</div>
8181
</div>

0 commit comments

Comments
 (0)