Skip to content

Commit

Permalink
Merge pull request #148 from simplitrac/fix-user-delete
Browse files Browse the repository at this point in the history
fixed user delete
  • Loading branch information
squrki authored Sep 11, 2024
2 parents fda9ac7 + f304d48 commit 183ec1a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/src/components/HamburgerMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const HamburgerMenu = () => {
<SignOut
variant="outline"
w="100%"
color="white"
color="black"
/>
</DrawerFooter>
</DrawerContent>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/SignOut.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const Logout = (props) => {
try {
await signOut(auth);
// localStorage.clear() // removing so that game state is preserved.
await resetAppState()
localStorage.removeItem('user');
resetAppState()
} catch (err) {
console.error('Error signing out: ', err);
}
Expand Down
8 changes: 4 additions & 4 deletions client/src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import achievementConfig from "./config/achievementConfig.js";
ReactDOM.createRoot(document.getElementById('root')).render(
// <AchievementProvider config={achievementConfig} initialState={{}} badgesButtonPosition={'top-right'}>
<AppProvider>
<ChakraProvider theme={theme}>
<App />
</ChakraProvider>
</AppProvider>
<ChakraProvider theme={theme}>
<App/>
</ChakraProvider>
</AppProvider>
// </AchievementProvider>
);

0 comments on commit 183ec1a

Please sign in to comment.