fix undefined check
Esse commit está contido em:
pai
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];
|
||||
}
|
||||
});
|
||||
|
||||
Carregando…
x
Referência em uma nova issue
Block a user