diff --git a/packages/taro-components/src/components/video/utils.js b/packages/taro-components/src/components/video/utils.js index acf4146e9412..51301e9e751d 100644 --- a/packages/taro-components/src/components/video/utils.js +++ b/packages/taro-components/src/components/video/utils.js @@ -1,5 +1,5 @@ export const formatTime = time => { - if (time === null) return '' + if (time == null) return '' const sec = Math.round(time % 60) const min = Math.round((time - sec) / 60) return `${min < 10 ? `0${min}` : min}:${sec < 10 ? `0${sec}` : sec}`