Merged in fix/STAY-124-change-dates (pull request #3199)
Fix/STAY-124 change dates * fix: handle change dates for different rate types * fix: update wrong spelling in cancellation rules * fix: add hover state on links * fix: handle multiroom scenario Approved-by: Erik Tiekstra
This commit is contained in:
@@ -27,11 +27,11 @@ import type { Room } from "../../../types/stores/booking-confirmation"
|
||||
|
||||
function getRate(cancellationRule: RateDefinition["cancellationRule"] | null) {
|
||||
switch (cancellationRule) {
|
||||
case "CancellableBefore6PM":
|
||||
case CancellationRuleEnum.CancellableBefore6PM:
|
||||
return RateEnum.flex
|
||||
case "Changeable":
|
||||
case CancellationRuleEnum.Changeable:
|
||||
return RateEnum.change
|
||||
case "NotCancellable":
|
||||
case CancellationRuleEnum.NotCancellable:
|
||||
return RateEnum.save
|
||||
default:
|
||||
return ""
|
||||
|
||||
Reference in New Issue
Block a user