From 075f5cc80a1dc4f6aa85d8a6e3cadaed244d72ce Mon Sep 17 00:00:00 2001 From: plebeius Date: Mon, 9 Jun 2025 18:41:42 +0200 Subject: [PATCH] fix(account data editor): immutable fields were included in the editor --- .../settings/account-data-editor/account-data-editor.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/views/settings/account-data-editor/account-data-editor.tsx b/src/views/settings/account-data-editor/account-data-editor.tsx index 4e76af8e..9ff2a7bd 100644 --- a/src/views/settings/account-data-editor/account-data-editor.tsx +++ b/src/views/settings/account-data-editor/account-data-editor.tsx @@ -22,13 +22,7 @@ const AccountDataEditor = () => { const [text, setText] = useState(''); const [showEditor, setShowEditor] = useState(false); - const accountJson = useMemo( - () => - stringify({ - account: { ...account }, - }), - [account], - ); + const accountJson = useMemo(() => stringify({ account: { ...account, plebbit: undefined, karma: undefined, unreadNotificationCount: undefined } }), [account]); useEffect(() => { setText(accountJson);