diff --git a/src/components/OwnerMessage/OwnerMessage.jsx b/src/components/OwnerMessage/OwnerMessage.jsx index df9d99d251..5a9ebc1f4c 100644 --- a/src/components/OwnerMessage/OwnerMessage.jsx +++ b/src/components/OwnerMessage/OwnerMessage.jsx @@ -55,7 +55,7 @@ function OwnerMessage({ function toggle() { setModal(!modal); - setDisableTextInput(false); + setDisableTextInput(isImageMessage(message)); } function toggleDeleteWarning() { @@ -97,6 +97,7 @@ function OwnerMessage({ toast.success( isStandard ? 'Standard message update successfully!' : 'Message update successfully!', ); + await getMessage(); } else { toast.error(`Standard message save failed! Error: ${response}`); } @@ -244,12 +245,24 @@ function OwnerMessage({ setMessage(event.target.value)} maxLength="100" disabled={disableTextInput} className={styles.inputs} /> + {hasSelectedImage && ( + + )} {!hasSelectedImage && ( <>