Skip to content

Commit

Permalink
Closing user settings sets state to "My Account"
Browse files Browse the repository at this point in the history
  • Loading branch information
DevlinRocha committed Jan 8, 2022
1 parent 483a196 commit 334fa91
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/userSettings/UserSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import tw from "tailwind-styled-components/dist/tailwind";
import {
setUnsavedChangesError,
setUserSettingsOpen,
setUserSettingsScreen,
useUserSettingsState,
} from "../../features/userSettings";
import SettingsSidebar from "./SettingsSidebar";
Expand Down Expand Up @@ -45,6 +46,7 @@ export default function UserSettings() {
if (unsavedChanges()) return;

dispatch(setUserSettingsOpen(!userSettingsOpen));
dispatch(setUserSettingsScreen("My Account"));
}

return (
Expand Down

0 comments on commit 334fa91

Please sign in to comment.