Skip to content

Commit 399eb9a

Browse files
committed
symbolKey
1 parent 6348a8c commit 399eb9a

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/quote/session.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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
};

0 commit comments

Comments
 (0)