react-component-countdown-timer
Advanced tools
Comparing version 0.1.7 to 0.1.8
@@ -77,6 +77,6 @@ "use strict"; | ||
var day = Math.floor(time / 86400); | ||
day = day.toString().length === 1 ? "0".concat(day) : day; | ||
minutes = minutes.toString().length === 1 ? "0".concat(minutes) : minutes; | ||
seconds = seconds.toString().length === 1 ? "0".concat(seconds) : seconds; | ||
hours = hours.toString().length === 1 ? "0".concat(hours) : hours; | ||
day = day < 10 ? "0".concat(day) : day; | ||
minutes = minutes < 10 ? "0".concat(minutes) : minutes; | ||
seconds = seconds < 10 ? "0".concat(seconds) : seconds; | ||
hours = hours < 10 ? "0".concat(hours) : hours; | ||
@@ -226,2 +226,4 @@ if (showTitle) { | ||
_this2.props.onEnd(); | ||
clearInterval(_this2.timer); | ||
} | ||
@@ -228,0 +230,0 @@ }); |
{ | ||
"name": "react-component-countdown-timer", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "Count down timer component for react", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43588
623