Skip to content

Commit

Permalink
Merge pull request #351 from MerginMaps/show_inv_expiration_in_days_#…
Browse files Browse the repository at this point in the history
…2692

Show invitation expiration in days #2692
  • Loading branch information
MarcelGeo authored Jan 9, 2025
2 parents f80c82b + 4e600e0 commit ed334ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-app/packages/lib/src/common/date_utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function formatRemainingTime(t2, t1 = new Date()) {
return remainingFormatDuration(diffInYears(t2Parsed, t1Parsed), 'years')
case days > 31:
return remainingFormatDuration(diffInMonths(t2Parsed, t1Parsed), 'months')
case days > 6:
case days > 14:
return remainingFormatDuration(diffInWeeks(t2Parsed, t1Parsed), 'weeks')
case days < 1:
if (days < 0) {
Expand Down

0 comments on commit ed334ea

Please sign in to comment.