feat(SW-415): Update typings
This commit is contained in:
@@ -35,7 +35,7 @@ export default function RoomCard({
|
||||
(rate) => rate.cancellationRule === "CancellableBefore6PM"
|
||||
)
|
||||
|
||||
const findProductForRate = (rate: RateDefinition | undefined) => {
|
||||
function findProductForRate(rate: RateDefinition | undefined) {
|
||||
return rate
|
||||
? roomConfiguration.products.find(
|
||||
(product) =>
|
||||
@@ -45,9 +45,9 @@ export default function RoomCard({
|
||||
: undefined
|
||||
}
|
||||
|
||||
const getPriceForRate = (
|
||||
function getPriceForRate(
|
||||
rate: typeof saveRate | typeof changeRate | typeof flexRate
|
||||
) => {
|
||||
) {
|
||||
return rateDefinitions.find((def) => def.rateCode === rate?.rateCode)
|
||||
?.generalTerms
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user