fix(account data editor): immutable fields were included in the editor

This commit is contained in:
plebeius
2025-06-09 18:41:42 +02:00
parent af48dccc02
commit 075f5cc80a

View File

@@ -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);