Fix websocket null data for undefined rbfSummary
This commit is contained in:
parent
8af64900d9
commit
4309bfd519
@ -229,7 +229,9 @@ class WebsocketHandler {
|
||||
if (parsedMessage && parsedMessage['track-rbf-summary'] != null) {
|
||||
if (parsedMessage['track-rbf-summary']) {
|
||||
client['track-rbf-summary'] = true;
|
||||
response['rbfLatestSummary'] = this.socketData['rbfSummary'];
|
||||
if (this.socketData['rbfSummary'] != null) {
|
||||
response['rbfLatestSummary'] = this.socketData['rbfSummary'];
|
||||
}
|
||||
} else {
|
||||
client['track-rbf-summary'] = false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user