fix client book

This commit is contained in:
root
2026-05-15 12:13:08 -04:00
parent 593ff202a3
commit 0edd90732e
+1 -1
View File
@@ -257,7 +257,7 @@ export default function BookClient({ language }: { language: PublicSiteLanguage
const nextStart = !current.startDate || current.startDate < minStart ? minStart : current.startDate
const nextEnd = !current.endDate || current.endDate <= nextStart ? minEnd : current.endDate
if (nextStart === current.startDate && nextEnd === current.endDate) return current
return { startDate: nextStart, endDate: nextEnd }
return { ...current, startDate: nextStart, endDate: nextEnd }
})
}, [vehicle?.nextAvailableAt])