Skip to content

Commit

Permalink
fix: update active profile instead of only the persisted profile
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed Mar 15, 2023
1 parent e7123a6 commit 54f0e62
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -40,6 +40,7 @@ import {
isDestroyingManager,
resetLoginProgress,
setTimeStrongholdLastUnlocked,
updateActiveProfile,
updateProfile,
} from '../../stores'
import { isLedgerProfile } from '../../utils'
Expand All @@ -60,7 +61,7 @@ export async function login(loginOptions?: ILoginOptions): Promise<void> {
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)
}
Expand Down

0 comments on commit 54f0e62

Please sign in to comment.