fix some flow

pull/513/head
Vladimir Volek 5 years ago
parent dc4efba477
commit 36848591c0

@ -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) {

@ -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,

Loading…
Cancel
Save