Skip to content

Commit 228484b

Browse files
guided1gkatsev
authored andcommitted
fix(time-display): Use formatTime for a consistent default instead of hardcoded string (#5055)
This is especially useful if a custom format time is being used.
1 parent 96987f8 commit 228484b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/js/control-bar/time-controls/time-display.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class TimeDisplay extends Component {
7878
this.contentEl_.removeChild(this.contentEl_.firstChild);
7979
}
8080

81-
this.textNode_ = document.createTextNode(this.formattedTime_ || '0:00');
81+
this.textNode_ = document.createTextNode(this.formattedTime_ || this.formatTime_(0));
8282
this.contentEl_.appendChild(this.textNode_);
8383
}
8484

0 commit comments

Comments
 (0)