mirror of
https://github.com/trezor/trezor-wallet
synced 2025-01-07 14:50:52 +00:00
log account creation
This commit is contained in:
parent
5fb0c4cb96
commit
ba50db2881
@ -2,6 +2,7 @@
|
||||
import * as LogActions from 'actions/LogActions';
|
||||
import { TRANSPORT, DEVICE } from 'trezor-connect';
|
||||
import * as DISCOVERY from 'actions/constants/discovery';
|
||||
import * as ACCOUNT from 'actions/constants/account';
|
||||
|
||||
import type { Middleware, MiddlewareAPI, MiddlewareDispatch, Action } from 'flowtype';
|
||||
|
||||
@ -10,6 +11,7 @@ const actions: Array<string> = [
|
||||
DEVICE.CONNECT,
|
||||
DEVICE.DISCONNECT,
|
||||
DISCOVERY.START,
|
||||
ACCOUNT.CREATE,
|
||||
];
|
||||
|
||||
/**
|
||||
@ -40,6 +42,9 @@ const LogService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch
|
||||
case DISCOVERY.START:
|
||||
api.dispatch(LogActions.add('Discovery started', action));
|
||||
break;
|
||||
case ACCOUNT.CREATE:
|
||||
api.dispatch(LogActions.add('Account created', action));
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user