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) }