disable cancel if no internal note is selected (#18926)

This commit is contained in:
sean-brydon authored and GitHub committed 2025-01-28 08:53:07 +00:00
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);