Skip to content

Commit

Permalink
Merge pull request #14 from DevlinRocha/change-avatar
Browse files Browse the repository at this point in the history
Closing user settings sets state to "My Account"
  • Loading branch information
DevlinRocha authored Jan 8, 2022
2 parents 5eed729 + 334fa91 commit 13630b6
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

1 comment on commit 13630b6

@vercel
Copy link

@vercel vercel bot commented on 13630b6 Jan 8, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.