From 3443565265dd7675460e334d5579cbfc1008f7c1 Mon Sep 17 00:00:00 2001 From: Paul Date: Mon, 30 Aug 2021 12:35:12 +0100 Subject: [PATCH] Fix observer on Profile pane. --- src/pages/settings/panes/Profile.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/settings/panes/Profile.tsx b/src/pages/settings/panes/Profile.tsx index 9447e07a..d936e94a 100644 --- a/src/pages/settings/panes/Profile.tsx +++ b/src/pages/settings/panes/Profile.tsx @@ -1,3 +1,4 @@ +import { observer } from "mobx-react-lite"; import { Profile as ProfileI } from "revolt-api/types/Users"; import styles from "./Panes.module.scss"; @@ -20,7 +21,7 @@ import AutoComplete, { } from "../../../components/common/AutoComplete"; import Button from "../../../components/ui/Button"; -export function Profile() { +export const Profile = observer(() => { const status = useContext(StatusContext); const translate = useTranslation(); const client = useClient(); @@ -169,4 +170,4 @@ export function Profile() {

); -} +});