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:
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…
Reference in New Issue
Block a user