This pull request implements to option to display the countdown time values without a leading zero. By default, the timeToShow prop has an array of uppercase letters (['D', 'H', 'M', 'S']); with this pull request, these uppercase letters denote that a leading zero will be displayed. However, if lowercase counterparts of the same letters are used in timeToShow, the leading zero will be hidden. This is done through adjusting the sprintf() use case in the codebase such that when a lowercase character is being used, the placeholder parameter in the function is %d instead of %02d.
This pull request implements to option to display the countdown time values without a leading zero. By default, the
timeToShow
prop has an array of uppercase letters (['D', 'H', 'M', 'S']
); with this pull request, these uppercase letters denote that a leading zero will be displayed. However, if lowercase counterparts of the same letters are used intimeToShow
, the leading zero will be hidden. This is done through adjusting thesprintf()
use case in the codebase such that when a lowercase character is being used, the placeholder parameter in the function is%d
instead of%02d
.