1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-12 17:10:56 +00:00

fix some flow

This commit is contained in:
Vladimir Volek 2019-04-17 17:13:23 +02:00
parent dc4efba477
commit 36848591c0
2 changed files with 6 additions and 2 deletions

View File

@ -363,8 +363,8 @@ export const handleCoinVisibility = (
coinShortcut: String,
shouldBeVisible: boolean
): ThunkAction => (dispatch: Dispatch): void => {
const configuration: ?Array<String> = getHiddenCoins();
let newConfig = configuration;
const configuration: Array<String> = getHiddenCoins();
let newConfig: Array<String> = configuration;
const isAlreadyHidden = configuration.find(coin => coin === coinShortcut);
if (isAlreadyHidden && shouldBeVisible) {

View File

@ -25,6 +25,10 @@ export type WalletAction =
state?: RouterLocationState,
pathname?: string,
}
| {
type: typeof WALLET.SET_HIDDEN_COINS,
hiddenCoins: Array<String>,
}
| {
type: typeof WALLET.TOGGLE_DEVICE_DROPDOWN,
opened: boolean,