Fix bad conditions
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-06-18 23:00:34 +02:00
parent c8a01f11b2
commit bc4fb79f8c

View File

@ -101,9 +101,11 @@ export function UpdateReservationDialog(p: {
<Button
onClick={submit}
disabled={
!(
(reservation?.accommodation_id ?? -1) > 0 &&
(reservation?.start ?? -1) > 0 &&
(reservation?.end ?? -1) > (reservation?.start ?? 0)
)
}
>
{p.create ? "Créer" : "Mettre à jour"}