fix: RateOverrideApi type to camelCase — transformKeys was converting keys but type was snake_case

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-23 16:26:51 +03:00
parent 2a741d89d0
commit 70531c3a9a
2 changed files with 9 additions and 9 deletions

View File

@@ -734,12 +734,12 @@ export function AvailabilityPage() {
// Build initial grid then apply saved overrides on top
const grid = buildPriceGrid(finalCats)
for (const o of apiOverrides) {
if (!grid[o.category_id]) continue
grid[o.category_id][o.date] = {
if (!grid[o.categoryId]) continue
grid[o.categoryId][o.date] = {
price: o.price,
extraPerson: o.extra_person,
minNights: o.min_nights,
channelPrices: o.channel_prices,
extraPerson: o.extraPerson,
minNights: o.minNights,
channelPrices: o.channelPrices,
closed: o.closed,
}
}