mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-16 16:21:32 +03:00
Fix issue with getNewestSubscriptionId
This commit is contained in:
@@ -317,7 +317,7 @@ class AggregatorWS {
|
||||
*/
|
||||
getNewestSubscriptionId(id: string): string {
|
||||
const newId = this.subIdReplacements[id];
|
||||
if (newId !== undefined) {
|
||||
if (newId !== undefined && newId !== id) {
|
||||
return this.getNewestSubscriptionId(newId);
|
||||
}
|
||||
return id;
|
||||
|
||||
Reference in New Issue
Block a user