mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-28 03:08:30 +00:00
observe from WalletService
This commit is contained in:
parent
6cf3cb4bdb
commit
9f98e7dd7e
@ -10,6 +10,7 @@ import * as NotificationActions from 'actions/NotificationActions';
|
||||
import * as LocalStorageActions from 'actions/LocalStorageActions';
|
||||
import * as TrezorConnectActions from 'actions/TrezorConnectActions';
|
||||
import * as SelectedAccountActions from 'actions/SelectedAccountActions';
|
||||
import * as SendFormActionActions from 'actions/SendFormActions';
|
||||
|
||||
import type {
|
||||
Middleware,
|
||||
@ -91,6 +92,8 @@ const WalletService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
|
||||
api.dispatch(NotificationActions.clear(prevLocation.state, currentLocation.state));
|
||||
}
|
||||
|
||||
// observe send form props changes
|
||||
api.dispatch(SendFormActionActions.observe(prevState, action));
|
||||
|
||||
// update common values in WallerReducer
|
||||
api.dispatch(WalletActions.updateSelectedValues(prevState, action));
|
||||
|
Loading…
Reference in New Issue
Block a user