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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user