Fix for nested options not set yet

pull/1545/head
Salim Blume 2022-03-05 03:15:58 -06:00
parent 50ca281500
commit e823ae8496
1 changed files with 3 additions and 3 deletions

View File

@ -189,9 +189,9 @@ exports.getList = function() {
exports.getStats = function(statIDs, options) { exports.getStats = function(statIDs, options) {
options = options||{}; options = options||{};
options.paceLength = options.paceLength||1000; options.paceLength = options.paceLength||1000;
options.notify.dist.increment = options.notify.dist.increment||0; options.notify.dist.increment = (options.notify && options.notify.dist && options.notify.dist.increment)||0;
options.notify.step.increment = options.notify.step.increment||0; options.notify.step.increment = (options.notify && options.notify.step && options.notify.step.increment)||0;
options.notify.time.increment = options.notify.time.increment||0; options.notify.time.increment = (options.notify && options.notify.time && options.notify.time.increment)||0;
var needGPS,needHRM; var needGPS,needHRM;
// ====================== // ======================
if (statIDs.includes("time")) { if (statIDs.includes("time")) {