File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -79,21 +79,21 @@ module.exports = (client) => class QuoteSession {
7979 if ( global . TW_DEBUG ) console . log ( '§90§30§102 QUOTE SESSION §0 DATA' , packet ) ;
8080
8181 if ( packet . type === 'quote_completed' ) {
82- const symbol = packet . data [ 1 ] ;
83- if ( ! this . #symbolListeners[ symbol ] ) {
84- this . #client. send ( 'quote_remove_symbols' , [ this . #sessionID, symbol ] ) ;
82+ const symbolKey = packet . data [ 1 ] ;
83+ if ( ! this . #symbolListeners[ symbolKey ] ) {
84+ this . #client. send ( 'quote_remove_symbols' , [ this . #sessionID, symbolKey ] ) ;
8585 return ;
8686 }
87- this . #symbolListeners[ symbol ] . forEach ( ( h ) => h ( packet ) ) ;
87+ this . #symbolListeners[ symbolKey ] . forEach ( ( h ) => h ( packet ) ) ;
8888 }
8989
9090 if ( packet . type === 'qsd' ) {
91- const symbol = packet . data [ 1 ] . n ;
92- if ( ! this . #symbolListeners[ symbol ] ) {
93- this . #client. send ( 'quote_remove_symbols' , [ this . #sessionID, symbol ] ) ;
91+ const symbolKey = packet . data [ 1 ] . n ;
92+ if ( ! this . #symbolListeners[ symbolKey ] ) {
93+ this . #client. send ( 'quote_remove_symbols' , [ this . #sessionID, symbolKey ] ) ;
9494 return ;
9595 }
96- this . #symbolListeners[ symbol ] . forEach ( ( h ) => h ( packet ) ) ;
96+ this . #symbolListeners[ symbolKey ] . forEach ( ( h ) => h ( packet ) ) ;
9797 }
9898 } ,
9999 } ;
You can’t perform that action at this time.
0 commit comments