Merged in fix/LOY-597-upcoming-today (pull request #3517)

fix(LOY-597): Display "Today" for upcoming stay today

* fix(LOY-597): Display "Today" for upcoming stay today


Approved-by: Anton Gunnarsson
This commit is contained in:
Matilda Landström
2026-01-30 08:03:28 +00:00
parent 5a90d454ce
commit 0919134f88
3 changed files with 13 additions and 1 deletions

View File

@@ -22,6 +22,13 @@ export function getTimeAgoText(checkoutDate: string, intl: IntlShape): string {
return ""
}
if (daysDiff === 0) {
return intl.formatMessage({
id: "nextStay.today",
defaultMessage: "Today",
})
}
if (daysDiff <= 30) {
// 1-30 days
return intl.formatMessage(