Skip to content

Commit 9674b03

Browse files
deploy bug bash
1 parent c69c1d6 commit 9674b03

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ workflows:
7777
branches:
7878
only:
7979
- dev
80+
- challenges-bug-bash
8081

8182
# Production builds are exectuted only on tagged commits to the
8283
# master branch.

src/containers/Filter/ChallengeFilter/index.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ const ChallengeFilter = ({
3535
// const BUCKET_OPEN_FOR_REGISTRATION = constants.FILTER_BUCKETS[1];
3636
const tagOptions = utils.createDropdownTermOptions(challengeTags, tags);
3737
const bucketOptions = utils.createRadioOptions(challengeBuckets, bucket);
38-
38+
const maxPrize = 100000;
3939
const caseSensitive = false;
4040
utils.setSelectedDropdownTermOptions(tagOptions, tags, caseSensitive);
4141

@@ -163,6 +163,9 @@ const ChallengeFilter = ({
163163
if (value == null) {
164164
setTotalPrizesFromError("Invalid format");
165165
return;
166+
} else if (value > maxPrize) {
167+
setTotalPrizesFromError("Too big");
168+
return;
166169
} else {
167170
setTotalPrizesFromError(null);
168171
}
@@ -196,6 +199,9 @@ const ChallengeFilter = ({
196199
if (value == null) {
197200
setTotalPrizesToError("Invalid format");
198201
return;
202+
} else if (value > maxPrize) {
203+
setTotalPrizesFromError("Too big");
204+
return;
199205
} else {
200206
setTotalPrizesToError(null);
201207
}

0 commit comments

Comments
 (0)