Skip to content

Commit

Permalink
update initalState
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrov-site committed May 21, 2024
1 parent 9a29e23 commit 31d4761
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/store/slices/appSlice.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { createSlice } from '@reduxjs/toolkit';

const initialState = {
token: null,
username: '',
token: localStorage.getItem('token') ? localStorage.getItem('token') : null,
username: localStorage.getItem('nickname') ? localStorage.getItem('nickname') : '',
currentChannelId: '1',
currentChannelName: 'general',
modalChannelId: '',
Expand Down

0 comments on commit 31d4761

Please sign in to comment.