Skip to content

Commit

Permalink
little changes ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslan-concero committed Sep 27, 2024
1 parent d99142f commit f613546
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/rewards/Quests/QuestCard/getQuestStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import duration from 'dayjs/plugin/duration'

dayjs.extend(duration)

export const hasQuestEventStarted = (startDate: number) => {
export const hasQuestEventStarted = (startDate: number): number => {
const now = dayjs()
const start = dayjs(startDate)

Expand All @@ -18,7 +18,7 @@ export const getQuestDaysLeft = (endDate: number) => {
return 0
}

const daysLeft = now.diff(end, 'day')
const daysLeft = end.diff(now, 'day')

return daysLeft > 0 ? daysLeft : 0
}

0 comments on commit f613546

Please sign in to comment.