Allow to cancel hyperchat if message is empty. #6942

Merged
Ruk33 merged 1 commit from 6941-cancel-hyperchat-if-message-empty into master 2021-08-24 16:57:30 +02:00

View file

@ -495,7 +495,12 @@ export function CommentCreate(props: Props) {
requiresAuth={IS_WEB}
/>
<Button disabled={disabled} button="link" label={__('Cancel')} onClick={() => setIsSupportComment(false)} />
<Button
disabled={isSubmitting}
button="link"
label={__('Cancel')}
onClick={() => setIsSupportComment(false)}
/>
</>
) : (
<>