diff --git a/src/models/options.ts b/src/models/options.ts index 642250f..1db96d9 100644 --- a/src/models/options.ts +++ b/src/models/options.ts @@ -94,7 +94,7 @@ export class Options { // check each condition and return false if something goes wrong for (let [conditionIdx, metric] of icon.metrics.entries()) { - const value = this.getLastValueFromMetrics(metric, `Icon ${iconIdx + 1}, Condition ${conditionIdx}`); + const value = this.getLastValueFromMetrics(metric, `Icon ${iconIdx + 1}, Condition ${conditionIdx + 1}`); if(value === null || value === undefined) { // TODO: may be throw an error return false;