disable cancel if no internal note is selected (#18926)
This commit is contained in:
1 parent
cd413cf640
commit
cc94fb4a4b
1 file changed
+4
-1
@@ -188,7 +188,10 @@ export default function CancelBooking(props: Props) {
|
||||
</Button>
|
||||
<Button
|
||||
data-testid="confirm_cancel"
|
||||
disabled={props.isHost && !cancellationReason}
|
||||
disabled={
|
||||
props.isHost &&
|
||||
(!cancellationReason || (props.internalNotePresets.length > 0 && !internalNote?.id))
|
||||
}
|
||||
onClick={async () => {
|
||||
setLoading(true);
|
||||
|
||||
|
||||
Reference in new issue
Block a user