Skip to content

Commit

Permalink
change checking error
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrov-site committed May 22, 2024
1 parent b44d653 commit 66e6223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/channels/Channels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Channels = () => {
};

useEffect(() => {
if (channelError) {
if (channelError?.status === 401) {
logOut();
dispatch(setUserData({ nickname: '', token: null }));
navigate(appPaths.login());
Expand Down

0 comments on commit 66e6223

Please sign in to comment.