Skip to content

Commit

Permalink
Collapse timeline when there are no drinks
Browse files Browse the repository at this point in the history
  • Loading branch information
TanukiSharp committed Apr 6, 2024
1 parent a82552f commit deab1d7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ class Timeline {

draw(now, lifetimeDrinks) {
if (lifetimeDrinks.length === 0) {
this.collapse();
return;
}

Expand Down

0 comments on commit deab1d7

Please sign in to comment.