Skip to content

Commit ee9b1ff

Browse files
MRN-884
1 parent 5e2526d commit ee9b1ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/ChatInput.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,11 +193,11 @@ function ChatInput({ chatUser }) {
193193
const sendMessage = () => {
194194
updateTypingGoneStatus(chatUser);
195195
switch (true) {
196-
case recordSecs < 1000:
196+
case recordSecs && recordSecs < 1000:
197197
showToast('Recorded audio time is too short');
198198
onResetRecord();
199199
break;
200-
case recordSecs >= 1000:
200+
case recordSecs && recordSecs >= 1000:
201201
onResetRecord();
202202
const updatedFile = {
203203
fileDetails: fileInfo[userId],

0 commit comments

Comments
 (0)