diff --git a/backend/src/api/websocket-handler.ts b/backend/src/api/websocket-handler.ts index 3a2edc466..073c51756 100644 --- a/backend/src/api/websocket-handler.ts +++ b/backend/src/api/websocket-handler.ts @@ -151,7 +151,7 @@ class WebsocketHandler { if (client['want-stats']) { response['mempoolInfo'] = mempoolInfo; response['vBytesPerSecond'] = vBytesPerSecond; - response['transactions'] = newTransactions.splice(0, 6).map((tx) => Common.stripTransaction(tx)); + response['transactions'] = newTransactions.slice(0, 6).map((tx) => Common.stripTransaction(tx)); } if (client['want-mempool-blocks']) {