File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
src/containers/Filter/ChallengeFilter Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ workflows:
77
77
branches :
78
78
only :
79
79
- dev
80
+ - challenges-bug-bash
80
81
81
82
# Production builds are exectuted only on tagged commits to the
82
83
# master branch.
Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ const ChallengeFilter = ({
35
35
// const BUCKET_OPEN_FOR_REGISTRATION = constants.FILTER_BUCKETS[1];
36
36
const tagOptions = utils . createDropdownTermOptions ( challengeTags , tags ) ;
37
37
const bucketOptions = utils . createRadioOptions ( challengeBuckets , bucket ) ;
38
-
38
+ const maxPrize = 100000 ;
39
39
const caseSensitive = false ;
40
40
utils . setSelectedDropdownTermOptions ( tagOptions , tags , caseSensitive ) ;
41
41
@@ -163,6 +163,9 @@ const ChallengeFilter = ({
163
163
if ( value == null ) {
164
164
setTotalPrizesFromError ( "Invalid format" ) ;
165
165
return ;
166
+ } else if ( value > maxPrize ) {
167
+ setTotalPrizesFromError ( "Too big" ) ;
168
+ return ;
166
169
} else {
167
170
setTotalPrizesFromError ( null ) ;
168
171
}
@@ -196,6 +199,9 @@ const ChallengeFilter = ({
196
199
if ( value == null ) {
197
200
setTotalPrizesToError ( "Invalid format" ) ;
198
201
return ;
202
+ } else if ( value > maxPrize ) {
203
+ setTotalPrizesFromError ( "Too big" ) ;
204
+ return ;
199
205
} else {
200
206
setTotalPrizesToError ( null ) ;
201
207
}
You can’t perform that action at this time.
0 commit comments