Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(Time): minimum seconds 1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrSwitch committed Jul 21, 2020
1 parent 7d941d7 commit 5ff31fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Time/getDateString.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function getDateString({
const FIVE_SECONDS = ONE_SECOND * 5;
delay = offset % FIVE_SECONDS || FIVE_SECONDS;
const seconds = parseInt(offset / 1000);
dateString = secondsAgoReadout(seconds || ONE_SECOND);
dateString = secondsAgoReadout(seconds || 1);
}
// A few minutes ago
else if (offset < ONE_MINUTE * 10) {
Expand Down

0 comments on commit 5ff31fc

Please sign in to comment.