Working send and updated account structure

This commit is contained in:
2026-08-20 11:24:59 +02:00
parent 9c448049bc
commit cce9756a1b
8 changed files with 28 additions and 16 deletions
+7 -7
View File
@@ -68,16 +68,16 @@ export function NewProfilePage({
const { secretKey } = ed.keygen();
const newAccount = {
displayName: name,
privateKey: base58.encode(secretKey),
avatar: avatar ?? undefined,
};
appRef.current.accounts.activeAccount =
appRef.current.accounts.accounts.length;
appRef.current.accounts.accounts.push(newAccount);
appRef.current.accounts.accounts.push({
meta: {
displayName: name,
avatar: avatar ?? undefined,
},
privateKey: base58.encode(secretKey),
});
saveAccounts(appRef.current.accounts);
} catch (e) {