fix: Hosts are able to cancel an event without providing any reason but with whitepsace characters (#22282)
Co-authored-by: Anik Dhabal Babu <[email protected]>
This commit is contained in:
1 parent
02321c33b2
commit
27cd7c8496
2 files changed
+2
-2
No files matched your search
@@ -199,7 +199,7 @@ export default function CancelBooking(props: Props) {
|
||||
data-testid="confirm_cancel"
|
||||
disabled={
|
||||
props.isHost &&
|
||||
(!cancellationReason || (props.internalNotePresets.length > 0 && !internalNote?.id))
|
||||
(!cancellationReason?.trim() || (props.internalNotePresets.length > 0 && !internalNote?.id))
|
||||
}
|
||||
onClick={async () => {
|
||||
setLoading(true);
|
||||
|
||||
Reference in new issue
Block a user