Skip to content
This repository was archived by the owner on Feb 22, 2024. It is now read-only.

Commit ecf4175

Browse files
remove_cryptocurrency_market
1 parent 0aaa0d4 commit ecf4175

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/navigation/menu.es6

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,9 @@ export const extractChartableMarkets = (trading_times_data) => {
5050
};
5151

5252
export const refreshMenu = (root, markets, callback) => {
53+
const non_crypto_markets = markets.filter( m => m.name !== "cryptocurrency" && m.name !== "Cryptocurrencies")
5354
const menu = `<ul>${
54-
markets.map(m => `<li><div>${m.display_name}</div><ul>${
55+
non_crypto_markets.map(m => `<li><div>${m.display_name}</div><ul>${
5556
m.submarkets.map(s => `<li><div>${s.display_name}</div><ul>${
5657
s.instruments.map(i => `<li symbol='${i.symbol}' pip='${i.pip}'><div>${i.display_name}</div></li>`).join('')
5758
}</ul></li>`).join('')

0 commit comments

Comments
 (0)