Skip to content

Commit a55dd91

Browse files
committed
Remove additional day from countdown
1 parent 5e97489 commit a55dd91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Dashboard/Dashboard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const Dashboard = (props: IDashboardProps) => {
4141
dayEndings = ["th", "th", "th", "th", "th", "th", "th", "th", "th", "th"];
4242
}
4343
var minuteDiff = (deadlineDate.getTime() - currentDate) / (1000 * 60);
44-
var daysLeft = Math.round(1 + minuteDiff / (60 * 24)); // Add 1 since it is inclusive
44+
var daysLeft = Math.round(minuteDiff / (60 * 24)); // Add 1 since it is inclusive
4545
var timeLeft = daysLeft;
4646
var unit = "days";
4747
if (minuteDiff <= 60 * 24 && minuteDiff > 0) {

0 commit comments

Comments
 (0)