mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
reset "remember" field while switching wallet type
This commit is contained in:
parent
d6af3d6dfa
commit
d8331cece0
@ -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(),
|
||||||
|
Loading…
Reference in New Issue
Block a user