Skip to content

Commit 833e7c4

Browse files
committed
Removed unnceccessary checks for checking if content and topic are empty strings
1 parent e4d162c commit 833e7c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/chat/ChatScreen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export default function ChatScreen(props: Props): Node {
164164
() => undefined,
165165
);
166166

167-
if ((content !== undefined && content !== '') || (topic !== undefined && topic !== '')) {
167+
if (content !== undefined || topic !== undefined) {
168168
api.updateMessage(auth, editMessage.id, { content, subject: topic }).catch(error => {
169169
showErrorAlert(_('Failed to edit message'), error.message);
170170
});

0 commit comments

Comments
 (0)