diff --git a/src/botPage/view/blockly/blocks/shared.js b/src/botPage/view/blockly/blocks/shared.js index c7f61cb17d..b1d35ab015 100644 --- a/src/botPage/view/blockly/blocks/shared.js +++ b/src/botPage/view/blockly/blocks/shared.js @@ -80,13 +80,15 @@ const getActiveSubMarket = submarkets => ); const getActiveMarket = markets => - Object.keys(markets).reduce( - (acc, market) => - Object.keys(getActiveSubMarket(markets[market].submarkets)).length - ? { ...acc, [market]: markets[market] } - : { ...acc }, - {} - ); + Object.keys(markets) + .filter(m => m !== 'basket_index') + .reduce( + (acc, market) => + Object.keys(getActiveSubMarket(markets[market].submarkets)).length + ? { ...acc, [market]: markets[market] } + : { ...acc }, + {} + ); fieldGeneratorMapping.MARKET_LIST = () => { const markets = getActiveMarket(symbolApi.activeSymbols.getMarkets()); @@ -335,7 +337,10 @@ export const getContractsAvailableForSymbolFromApi = async underlyingSymbol => { contractsForStore .filter(c => c.symbol === underlyingSymbol) .forEach(() => - contractsForStore.splice(contractsForStore.findIndex(c => c.symbol === underlyingSymbol), 1) + contractsForStore.splice( + contractsForStore.findIndex(c => c.symbol === underlyingSymbol), + 1 + ) ); contractsForStore.push(contractsForSymbol); setStorage('contractsForStore', JSON.stringify(contractsForStore));
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: