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