mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-19 09:33:47 +00:00
Don't show colons for time that we don't know
This commit is contained in:
parent
6cb8b50c09
commit
ef82da7664
1 changed files with 3 additions and 0 deletions
|
|
@ -37,6 +37,9 @@ export const getTimeObj = time => {
|
|||
};
|
||||
|
||||
export const getTimeStr = (time, truncate = true) => {
|
||||
if (time == null) {
|
||||
return "";
|
||||
}
|
||||
const {
|
||||
minutesFirstDigit,
|
||||
minutesSecondDigit,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue