1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-24 09:18:09 +00:00

WalletActions.observe should react to CONNECT.AUTH_DEVICE action

This commit is contained in:
Szymon Lesisz 2018-10-03 19:54:57 +02:00
parent 2cb9057d29
commit aa96a15b16

View File

@ -2,6 +2,7 @@
import { LOCATION_CHANGE } from 'react-router-redux'; import { LOCATION_CHANGE } from 'react-router-redux';
import { DEVICE } from 'trezor-connect'; import { DEVICE } from 'trezor-connect';
import * as CONNECT from 'actions/constants/TrezorConnect';
import * as WALLET from 'actions/constants/wallet'; import * as WALLET from 'actions/constants/wallet';
import * as reducerUtils from 'reducers/utils'; import * as reducerUtils from 'reducers/utils';
@ -84,6 +85,7 @@ export const clearUnavailableDevicesData = (prevState: State, device: Device): T
// other actions will be ignored // other actions will be ignored
const actions = [ const actions = [
LOCATION_CHANGE, LOCATION_CHANGE,
CONNECT.AUTH_DEVICE,
...Object.values(DEVICE).filter(v => typeof v === 'string'), ...Object.values(DEVICE).filter(v => typeof v === 'string'),
]; ];