feat: update login flow

This commit is contained in:
2024-01-10 09:22:13 +07:00
parent 73f90ebaf9
commit f2504071cd
17 changed files with 619 additions and 705 deletions

View File

@@ -32,9 +32,7 @@ export function OnboardingProfileSettingsScreen() {
navigate("/follow");
}
const oldProfile = await ark.getUserProfile({
pubkey: storage.account.pubkey,
});
const oldProfile = await ark.getUserProfile();
const profile: NDKUserProfile = {
...data,
@@ -55,9 +53,6 @@ export function OnboardingProfileSettingsScreen() {
if (publish) {
setLoading(false);
navigate("/follow");
} else {
toast.error("Cannot publish your profile, please try again later.");
setLoading(false);
}
} catch (e) {
setLoading(false);