wip: refactor

This commit is contained in:
2024-12-15 07:53:53 +07:00
parent f82eaa4ac3
commit 2b9c88c5b7
5 changed files with 88 additions and 12 deletions

View File

@@ -49,8 +49,8 @@ impl Onboarding {
get_client().set_signer(keys).await;
});
// Update view
cx.update_global(|state: &mut AccountRegistry, cx| {
// Update globals state
cx.update_global::<AccountRegistry, _>(|state, cx| {
state.set_user(Some(public_key));
cx.notify();
});