Allow to cancel hyperchat if message is empty. (#6942)

This commit is contained in:
Franco Montenegro 2021-08-24 11:57:29 -03:00 committed by GitHub
parent 6d71e53f44
commit a03d4ca20e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)}
/>
</>
) : (
<>