mirror of
https://github.com/trezor/trezor-wallet
synced 2024-11-24 09:18:09 +00:00
disable PromiseActions from logger
This commit is contained in:
parent
7f11e7207b
commit
815fba5e6b
@ -33,8 +33,8 @@ let composedEnhancers: any;
|
|||||||
if (process.env.NODE_ENV === 'development') {
|
if (process.env.NODE_ENV === 'development') {
|
||||||
const excludeLogger = (getState: GetState, action: Action): boolean => {
|
const excludeLogger = (getState: GetState, action: Action): boolean => {
|
||||||
//'@@router/LOCATION_CHANGE'
|
//'@@router/LOCATION_CHANGE'
|
||||||
const excluded: Array<string> = ['LOG_TO_EXCLUDE', 'log__add'];
|
const excluded: Array<?string> = ['LOG_TO_EXCLUDE', 'log__add', undefined];
|
||||||
const pass: Array<string> = excluded.filter(act => action.type === act);
|
const pass: Array<?string> = excluded.filter(act => action.type === act);
|
||||||
return pass.length === 0;
|
return pass.length === 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user