Skip to content

Commit

Permalink
fix: change type
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 18, 2024
1 parent ce5b42d commit 45e5487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChatWindow/ChatWindow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ export default class ChatWindow extends BaseComponent {
this.scrollToTheBottom();
} else {
const outComingMessage = this.messageQueue.shift();
if (!outComingMessage || message.sent === 'false') return;
if (!outComingMessage || !message.sent) return;

this.addNewMessageElement(outComingMessage);
this.scrollToTheBottom();
Expand Down

0 comments on commit 45e5487

Please sign in to comment.