mirror of
https://github.com/plebbit/seedit.git
synced 2026-05-18 21:57:54 -04:00
fix(account settings): changing account didn't change fields in UI
This commit is contained in:
@@ -236,6 +236,7 @@ const Settings = () => {
|
||||
const location = useLocation();
|
||||
const isInSettingsPlebbitOptionsView = isSettingsPlebbitOptionsView(location.pathname);
|
||||
const isInSettingsContentOptionsView = isSettingsContentOptionsView(location.pathname);
|
||||
const account = useAccount();
|
||||
|
||||
useEffect(() => {
|
||||
window.scrollTo(0, 0);
|
||||
@@ -248,7 +249,7 @@ const Settings = () => {
|
||||
|
||||
return (
|
||||
<div className={styles.content}>
|
||||
{isInSettingsPlebbitOptionsView ? <PlebbitOptions /> : isInSettingsContentOptionsView ? <ContentOptions /> : <GeneralSettings />}
|
||||
{isInSettingsPlebbitOptionsView ? <PlebbitOptions /> : isInSettingsContentOptionsView ? <ContentOptions /> : <GeneralSettings key={account?.id} />}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user