diff --git a/lib/timeline.js b/lib/timeline.js index 6e00ac7..ef3870d 100644 --- a/lib/timeline.js +++ b/lib/timeline.js @@ -26,7 +26,7 @@ class Timeline { this.show(); - this._computeCanvasSize(lifetimeDrinks); + this._computeTimelineSize(lifetimeDrinks); this._clear(); @@ -74,7 +74,7 @@ class Timeline { timelineElement.innerHTML = ''; } - _computeCanvasSize(lifetimeDrinks) { + _computeTimelineSize(lifetimeDrinks) { const startTime = lifetimeDrinks[0].startedAt; let endTime;