From 52dde69958dab410c8e764419372f65918fdc8af Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Fri, 2 Sep 2022 16:50:22 +0200 Subject: [PATCH] Do not set wallet selection to undefined when adding a new wallet --- src/app/state/wallet/saga.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/state/wallet/saga.ts b/src/app/state/wallet/saga.ts index 88423e1249..3325c35028 100644 --- a/src/app/state/wallet/saga.ts +++ b/src/app/state/wallet/saga.ts @@ -4,7 +4,7 @@ import { hex2uint, parseRpcBalance, publicKeyToAddress, shortPublicKey, uint2hex import nacl from 'tweetnacl' import { call, fork, put, select, take, takeEvery, takeLatest } from 'typed-redux-saga' -import { walletActions, initialState } from '.' +import { walletActions } from '.' import { LedgerAccount } from '../ledger/types' import { getOasisNic } from '../network/saga' import { transactionActions } from '../transaction' @@ -130,7 +130,6 @@ export function* openWalletFromMnemonic({ payload: mnemonic }: PayloadAction) { - yield* put(walletActions.walletSelected(initialState.selectedWallet)) const existingWallet = yield* call(getWalletByAddress, newWallet.address) if (!existingWallet) { yield* put(walletActions.walletOpened(newWallet))