Fix channel event name for chain transactions.

pull/857/head
Stamates 6 years ago
parent 39a07f5263
commit 09d176758f
  1. 2
      apps/block_scout_web/assets/js/pages/chain.js

@ -127,7 +127,7 @@ if ($chainDetailsPage.length) {
const transactionsChannel = socket.channel(`transactions:new_transaction`) const transactionsChannel = socket.channel(`transactions:new_transaction`)
transactionsChannel.join() transactionsChannel.join()
transactionsChannel.on('new_transaction', batchChannel((msgs) => transactionsChannel.on('transaction', batchChannel((msgs) =>
store.dispatch({ type: 'RECEIVED_NEW_TRANSACTION_BATCH', msgs: humps.camelizeKeys(msgs) })) store.dispatch({ type: 'RECEIVED_NEW_TRANSACTION_BATCH', msgs: humps.camelizeKeys(msgs) }))
) )

Loading…
Cancel
Save