Merged in chore/booking-flow-cleaning (pull request #3354)

chore: Clean booking-flow

* Clean booking-flow

* Fix type issue


Approved-by: Joakim Jäderberg
Approved-by: Linus Flood
This commit is contained in:
Anton Gunnarsson
2025-12-17 13:04:26 +00:00
parent eb3b18b35e
commit 6ee262ad89
10 changed files with 70 additions and 32 deletions

View File

@@ -165,6 +165,9 @@ function getRewardMessage(config: BookingFlowConfig, intl: IntlShape): string {
id: "bookingWidget.reward.rewardNight",
defaultMessage: "Reward Night",
})
default:
const _exhaustiveCheck: never = config.variant
throw new Error(`Unknown variant: ${config.variant}`)
}
}