Skip to content

Commit

Permalink
fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman committed Aug 13, 2024
1 parent 88ec4bd commit 5f31ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/Components/mainPage/Messages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Messages = ({ filter }) => {
const bottomRef = useRef(null);
const scrollBottomRef = useRef(null);

const currentChannelMessages = messages.filter((m) => m.channelId === currentChannelId);
const currentChannelMessages = messages.filter((m) => +m.channelId === +currentChannelId);

const Scroll = () => {
const { scrollTop } = container.current;
Expand Down

0 comments on commit 5f31ad4

Please sign in to comment.