Skip to content

Commit

Permalink
fix type issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman committed Aug 13, 2024
1 parent 48ce72c commit db8393d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/slices/channelsSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const slice = createSlice({
state.channelsList.push(payload); /* eslint-disable-line */
},
removeChannel: (state, { payload }) => {
if (payload.id === state.currentChannelId) { /* eslint-disable-line */
if (+payload.id === +state.currentChannelId) { /* eslint-disable-line */
state.currentChannelId = 1; /* eslint-disable-line */
}
const index = state.channelsList.findIndex((channel) => channel.id === payload.id);
Expand Down

0 comments on commit db8393d

Please sign in to comment.