Skip to content

Commit 7637bc3

Browse files
committed
Merge branch 'develop'
2 parents 6bb8908 + db360ff commit 7637bc3

File tree

2 files changed

+11
-9
lines changed

2 files changed

+11
-9
lines changed

src/shared/routes/Topcoder/ChallengeListing.jsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,17 @@ export default function ChallengeListingRoute() {
2727
/* TODO: This validation of start and end dates from query params
2828
* does the trick of removing invalid dates from URL at the client
2929
* side, but it actually should be done in the reducer as well. */
30-
if (query.filter && query.filter.startDate
31-
&& !moment(query.filter.startDate).isValid()) {
32-
delete query.filter.startDate;
30+
if (query) {
31+
if (query.filter && query.filter.startDate
32+
&& !moment(query.filter.startDate).isValid()) {
33+
delete query.filter.startDate;
34+
}
35+
if (query.filter && query.filter.endDate
36+
&& !moment(query.filter.endDate).isValid()) {
37+
delete query.filter.endDate;
38+
}
39+
updateQuery({ filter: query.filter });
3340
}
34-
if (query.filter && query.filter.endDate
35-
&& !moment(query.filter.endDate).isValid()) {
36-
delete query.filter.endDate;
37-
}
38-
updateQuery({ filter: query.filter });
3941

4042
const currencyFromUrl = _.get(query, 'currency');
4143
const prizeMode = currencyFromUrl && `money-${currencyFromUrl}`;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1504137600,"base":"USD","rates":{"AED":3.673097,"AFN":68.445423,"ALL":111.791078,"AMD":480.27149,"ANG":1.78843,"AOA":165.9205,"ARS":17.395,"AUD":1.264894,"AWG":1.794996,"AZN":1.7,"BAM":1.644699,"BBD":2,"BDT":81.689034,"BGN":1.64397,"BHD":0.377055,"BIF":1749.75,"BMD":1,"BND":1.356545,"BOB":7.008005,"BRL":3.1603,"BSD":1,"BTC":0.00021700956,"BTN":63.98413,"BWP":10.164186,"BYN":1.941205,"BZD":2.025258,"CAD":1.263078,"CDF":1550.740385,"CHF":0.963759,"CLF":0.02349,"CLP":631.9,"CNH":6.599327,"CNY":6.595577,"COP":2953.5,"CRC":579.374449,"CUC":1,"CUP":25.5,"CVE":92.8,"CZK":21.92111,"DJF":178.77,"DKK":6.256053,"DOP":47.279238,"DZD":110.9295,"EGP":17.643,"ERN":15.335471,"ETB":23.319528,"EUR":0.840993,"FJD":2.034645,"FKP":0.774009,"GBP":0.774009,"GEL":2.4245,"GGP":0.774009,"GHS":4.456015,"GIP":0.774009,"GMD":46.15,"GNF":8930.05,"GTQ":7.320704,"GYD":207.972754,"HKD":7.824991,"HNL":23.509381,"HRK":6.2329,"HTG":63.506176,"HUF":257.132505,"IDR":13345.175458,"ILS":3.58885,"IMP":0.774009,"INR":63.9874,"IQD":1172.5,"IRR":33062.267348,"ISK":105.747443,"JEP":0.774009,"JMD":128.693699,"JOD":0.709001,"JPY":110.4721,"KES":103.18,"KGS":68.664403,"KHR":4075.766667,"KMF":414.090225,"KPW":900,"KRW":1124.28,"KWD":0.301448,"KYD":0.837333,"KZT":336.825303,"LAK":8328.65,"LBP":1509.062443,"LKR":153.581733,"LRD":115.030245,"LSL":13.085258,"LYD":1.368959,"MAD":9.370738,"MDL":17.864359,"MGA":2982.444875,"MKD":51.78,"MMK":1369.51006,"MNT":2428.158099,"MOP":8.098407,"MRO":366.89879,"MUR":32.6185,"MVR":15.450233,"MWK":725.046611,"MXN":17.74,"MYR":4.2715,"MZN":61.160857,"NAD":13.085258,"NGN":355,"NIO":29.996418,"NOK":7.80381,"NPR":102.833791,"NZD":1.388156,"OMR":0.384992,"PAB":1,"PEN":3.240393,"PGK":3.199435,"PHP":51.149,"PKR":105.725129,"PLN":3.57795,"PYG":5696.477124,"QAR":3.685006,"RON":3.863137,"RSD":100.15515,"RUB":58.4901,"RWF":831,"SAR":3.7503,"SBD":7.797375,"SCR":13.631694,"SDG":6.708373,"SEK":7.975026,"SGD":1.358101,"SHP":0.774009,"SLL":7550.184032,"SOS":580.38334,"SRD":7.438,"SSP":124.9444,"STD":20528.502691,"SVC":8.791576,"SYP":515,"SZL":13.096402,"THB":33.2155,"TJS":8.856445,"TMT":3.499986,"TND":2.434089,"TOP":2.193576,"TRY":3.456008,"TTD":6.757558,"TWD":30.151,"TZS":2241.25,"UAH":25.716003,"UGX":3627.308069,"USD":1,"UYU":28.773276,"UZS":4201.65,"VEF":10.05845,"VND":22722.55232,"VUV":105.013288,"WST":2.497571,"XAF":551.655496,"XAG":0.05750432,"XAU":0.00076489,"XCD":2.70255,"XDR":0.7051,"XOF":551.655496,"XPD":0.0010724,"XPF":100.357205,"XPT":0.0010091,"YER":250.35,"ZAR":13.01652,"ZMW":9.077975,"ZWL":322.355011}}
1+
{"disclaimer":"Usage subject to terms: https://openexchangerates.org/terms","license":"https://openexchangerates.org/license","timestamp":1504191600,"base":"USD","rates":{"AED":3.673158,"AFN":68.455,"ALL":112.75,"AMD":477.972813,"ANG":1.781679,"AOA":165.9205,"ARS":17.3451,"AUD":1.261173,"AWG":1.795249,"AZN":1.7,"BAM":1.6468,"BBD":2,"BDT":80.768457,"BGN":1.6474,"BHD":0.37712,"BIF":1740,"BMD":1,"BND":1.359231,"BOB":6.981659,"BRL":3.14214,"BSD":1,"BTC":0.000211107741,"BTN":63.917089,"BWP":10.141207,"BYN":1.934107,"BZD":2.017611,"CAD":1.254211,"CDF":1550,"CHF":0.961185,"CLF":0.02336,"CLP":628.4,"CNH":6.599018,"CNY":6.593122,"COP":2945.75,"CRC":576.584261,"CUC":1,"CUP":25.5,"CVE":93.1,"CZK":21.963203,"DJF":178.97,"DKK":6.255708,"DOP":47.62,"DZD":111.193,"EGP":17.644,"ERN":15.343604,"ETB":23.56,"EUR":0.841044,"FJD":2.034645,"FKP":0.776028,"GBP":0.776028,"GEL":2.428975,"GGP":0.776028,"GHS":4.4425,"GIP":0.776028,"GMD":46.1,"GNF":8970,"GTQ":7.296325,"GYD":208.477627,"HKD":7.826237,"HNL":23.375,"HRK":6.244396,"HTG":63.09728,"HUF":256.996415,"IDR":13343.037506,"ILS":3.5861,"IMP":0.776028,"INR":63.985533,"IQD":1183,"IRR":33184,"ISK":104.873745,"JEP":0.776028,"JMD":128.876658,"JOD":0.708997,"JPY":110.09367647,"KES":102.8,"KGS":68.675501,"KHR":4051,"KMF":414.090225,"KPW":900,"KRW":1124.465,"KWD":0.301812,"KYD":0.834048,"KZT":338.09,"LAK":8306,"LBP":1507.5,"LKR":152.78,"LRD":115.088085,"LSL":13.045,"LYD":1.36,"MAD":9.3774,"MDL":17.7671,"MGA":2950,"MKD":51.8875,"MMK":1361.15,"MNT":2428.467354,"MOP":8.065185,"MRO":364,"MUR":32.644,"MVR":15.460011,"MWK":725.605,"MXN":17.827439,"MYR":4.272136,"MZN":60.994761,"NAD":13.01375,"NGN":356,"NIO":30.05,"NOK":7.77867,"NPR":102.370083,"NZD":1.396834,"OMR":0.385002,"PAB":1,"PEN":3.241804,"PGK":3.19449,"PHP":51.165,"PKR":105.2,"PLN":3.572761,"PYG":5671.35,"QAR":3.685006,"RON":3.863436,"RSD":100.277001,"RUB":58.0745,"RWF":830,"SAR":3.7506,"SBD":7.812222,"SCR":13.57228,"SDG":6.685,"SEK":7.955603,"SGD":1.357985,"SHP":0.776028,"SLL":7524.999807,"SOS":587,"SRD":7.438,"SSP":124.9444,"STD":20582.258183,"SVC":8.758114,"SYP":515,"SZL":13.045,"THB":33.198,"TJS":8.823691,"TMT":3.50998,"TND":2.432718,"TOP":2.19132,"TRY":3.452609,"TTD":6.738628,"TWD":30.133139,"TZS":2240.85,"UAH":25.725498,"UGX":3603.45,"USD":1,"UYU":28.843697,"UZS":4177.5,"VEF":10.060796,"VND":22748.70719,"VUV":105.441552,"WST":2.500923,"XAF":551.688664,"XAG":0.05701255,"XAU":0.00075943,"XCD":2.70255,"XDR":0.707519,"XOF":551.688664,"XPD":0.00107013,"XPF":100.36324,"XPT":0.00100605,"YER":250.375,"ZAR":12.997146,"ZMW":9.085,"ZWL":322.355011}}

0 commit comments

Comments
 (0)