You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-wallet/src/js/actions/LogActions.js

16 lines
292 B

/* @flow */
'use strict';
export const toggle = (): any => {
return (dispatch, getState) => {
if (!getState().log.opened) {
window.scrollTo(0, 0);
}
dispatch({
type: getState().log.opened ? 'log__close' : 'log__open'
});
}
}