Skip to content

Commit

Permalink
fix: correctly display boost days left
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 20, 2024
1 parent d4bdf81 commit f9bd423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/HorizontalAdCard/HorizontalAdCard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function HorizontalAdCard(

pageContainer.innerHTML = template({
...cardData,
boostDaysLeft: Math.round(
boostDaysLeft: Math.ceil(
(new Date(cardData.endBoostDate).valueOf() - new Date().valueOf()) /
(60 * 60 * 24 * 1000)
).toString(),
Expand Down

0 comments on commit f9bd423

Please sign in to comment.