1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

reset "remember" field while switching wallet type

This commit is contained in:
Szymon Lesisz 2018-10-08 12:28:30 +02:00
parent d6af3d6dfa
commit d8331cece0

View File

@ -269,6 +269,7 @@ const onChangeWalletType = (state: State, device: TrezorDevice, hidden: boolean)
const changedDevices = affectedDevices.map((d) => { // eslint-disable-line arrow-body-style const changedDevices = affectedDevices.map((d) => { // eslint-disable-line arrow-body-style
return d.type === 'acquired' ? { return d.type === 'acquired' ? {
...d, ...d,
remember: false,
state: null, state: null,
useEmptyPassphrase: !hidden, useEmptyPassphrase: !hidden,
ts: new Date().getTime(), ts: new Date().getTime(),