Skip to content

Commit

Permalink
fix: testing manual check
Browse files Browse the repository at this point in the history
  • Loading branch information
Valimp committed Sep 20, 2024
1 parent fc11d9a commit cb794b5
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,13 @@ export default function App() {
.then(response => {
const cookieUserName = off.getUsername();
const userData = response.data.user;
setUserState((prevState) => ({
...prevState,
setUserState({
userName: cookieUserName,
isLoggedIn: true,
isModerator: userData.moderator === 1,
}))
isModerator: true,
})
console.log(userData);

console.log(userState);

setAlertIsOpen(true);
Expand Down

0 comments on commit cb794b5

Please sign in to comment.