diff --git a/e2e/paths/03-worker/04_time_control.spec.js b/e2e/paths/03-worker/04_time_control.spec.js index 83a82f7e11..d468b91539 100644 --- a/e2e/paths/03-worker/04_time_control.spec.js +++ b/e2e/paths/03-worker/04_time_control.spec.js @@ -1,7 +1,6 @@ import selectors from '../../helpers/selectors.js'; import getBrowser from '../../helpers/puppeteer'; -// missing full run validation describe('Worker time control path', () => { let browser; let page; diff --git a/modules/worker/front/time-control/index.js b/modules/worker/front/time-control/index.js index 6b1db9e6d7..ab9bd00339 100644 --- a/modules/worker/front/time-control/index.js +++ b/modules/worker/front/time-control/index.js @@ -203,8 +203,6 @@ class Controller extends Section { } set weekTotalHours(totalHours) { - if (!totalHours) return this._weekTotalHours = this.formatHours(0); - this._weekTotalHours = this.formatHours(totalHours); } @@ -212,9 +210,7 @@ class Controller extends Section { return this._weekTotalHours; } - formatHours(timestamp) { - timestamp = timestamp || 0; - + formatHours(timestamp = 0) { let hour = Math.floor(timestamp / 3600); let min = Math.floor(timestamp / 60 - 60 * hour);