This repository was archived by the owner on Feb 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/javascript/app/pages/trade Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,10 @@ class Markets extends React.Component {
79
79
const submarket = Object . keys ( this . markets [ market_symbol ] . submarkets ) . sort ( sortSubmarket ) [ 0 ] ;
80
80
underlying_symbol = Object . keys ( this . markets [ market_symbol ] . submarkets [ submarket ] . symbols ) . sort ( ) [ 0 ] ;
81
81
}
82
- const markets_arr = Object . entries ( this . markets ) . sort ( ( a , b ) => sortSubmarket ( a [ 0 ] , b [ 0 ] ) ) ;
83
- this . markets_all = markets_arr . slice ( ) ;
82
+ const is_not_crypto = symbol => ! / ^ ( c r y | J D ) / i. test ( symbol ) ;
83
+ const market_arr = Object . entries ( this . markets ) . sort ( ( a , b ) => sortSubmarket ( a [ 0 ] , b [ 0 ] ) ) ;
84
+ const non_crypto_markets_arr = market_arr . filter ( market => is_not_crypto ( market ) ) ;
85
+ this . markets_all = non_crypto_markets_arr . slice ( ) ;
84
86
if ( ! ( market_symbol in this . markets ) ) {
85
87
market_symbol = Object . keys ( this . markets ) . find ( m => this . markets [ m ] . submarkets [ market_symbol ] ) ;
86
88
Defaults . set ( 'market' , market_symbol ) ;
@@ -97,7 +99,7 @@ class Markets extends React.Component {
97
99
symbol : underlying_symbol ,
98
100
name : this . underlyings [ underlying_symbol ] ,
99
101
} ,
100
- markets : markets_arr ,
102
+ markets : non_crypto_markets_arr ,
101
103
active_market : market_symbol ,
102
104
query : '' ,
103
105
open_dropdown_scroll_id : 0 ,
You can’t perform that action at this time.
0 commit comments