From 334fa91f1f2d0d45a67e3114801677a42e74860e Mon Sep 17 00:00:00 2001 From: Devlin Date: Fri, 7 Jan 2022 18:36:14 -0800 Subject: [PATCH] Closing user settings sets state to "My Account" --- src/components/userSettings/UserSettings.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/userSettings/UserSettings.tsx b/src/components/userSettings/UserSettings.tsx index b07958c..b01de67 100644 --- a/src/components/userSettings/UserSettings.tsx +++ b/src/components/userSettings/UserSettings.tsx @@ -2,6 +2,7 @@ import tw from "tailwind-styled-components/dist/tailwind"; import { setUnsavedChangesError, setUserSettingsOpen, + setUserSettingsScreen, useUserSettingsState, } from "../../features/userSettings"; import SettingsSidebar from "./SettingsSidebar"; @@ -45,6 +46,7 @@ export default function UserSettings() { if (unsavedChanges()) return; dispatch(setUserSettingsOpen(!userSettingsOpen)); + dispatch(setUserSettingsScreen("My Account")); } return (