Fix copy/paste error - Et2DateDuration does not have an options property to access

This commit is contained in:
nathan 2022-03-01 16:50:05 -07:00
parent 00f7b51fbd
commit 3c9b9540e4

View File

@ -449,9 +449,9 @@ export class Et2DateDuration extends Et2InputWidget(FormControlMixin(LitElement)
return _highest ? _value : _value % 60;
case 'h':
_value = Math.floor(_value / 3600);
return _highest ? _value : _value % this.options.hours_per_day;
return _highest ? _value : _value % this.hours_per_day;
case 'd':
return Math.floor(_value / 3600 * this.options.hours_per_day);
return Math.floor(_value / 3600 * this.hours_per_day);
}
}