Fix bad conditions
This commit is contained in:
parent
c8a01f11b2
commit
bc4fb79f8c
@ -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"}
|
||||
|
Loading…
Reference in New Issue
Block a user