From 54f0e620985064a992cc2aad1cce22011c7e0ba3 Mon Sep 17 00:00:00 2001 From: Nicole O'Brien Date: Wed, 15 Mar 2023 17:21:10 +0000 Subject: [PATCH] fix: update active profile instead of only the persisted profile --- .../shared/lib/core/profile/actions/active-profile/login.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/shared/lib/core/profile/actions/active-profile/login.ts b/packages/shared/lib/core/profile/actions/active-profile/login.ts index f2f6c87324..20a588d824 100644 --- a/packages/shared/lib/core/profile/actions/active-profile/login.ts +++ b/packages/shared/lib/core/profile/actions/active-profile/login.ts @@ -40,6 +40,7 @@ import { isDestroyingManager, resetLoginProgress, setTimeStrongholdLastUnlocked, + updateActiveProfile, updateProfile, } from '../../stores' import { isLedgerProfile } from '../../utils' @@ -60,7 +61,7 @@ export async function login(loginOptions?: ILoginOptions): Promise { const profileManagerOptions = await buildProfileManagerOptionsFromProfileData(_activeProfile) const { storagePath, coinType, clientOptions, secretManager } = profileManagerOptions // Make sure the profile has the latest client options that we are using - updateProfile(_activeProfile.id, { clientOptions }) + updateActiveProfile({ clientOptions }) const manager = initialiseProfileManager(storagePath, coinType, clientOptions, secretManager, id) profileManager.set(manager) }