fix undefined check
This commit is contained in:
vanhempi
a71c0c3838
commit
a7ef7325f6
2
index.js
2
index.js
@ -20,7 +20,7 @@ Challenge.create = function (options) {
|
||||
results.create = undefined;
|
||||
|
||||
Object.keys(defaults).forEach(function (key) {
|
||||
if ('undefined' !== typeof options[key]) {
|
||||
if ('undefined' === typeof options[key]) {
|
||||
options[key] = defaults[key];
|
||||
}
|
||||
});
|
||||
|
||||
Ladataan…
x
Viittaa uudesa ongelmassa
Block a user