Check address hashes for equality instead of associations

Co-authored-by: Stamates <stamates@hotmail.com>
pull/429/head
Tim Mecklem 6 years ago committed by jimmay5469
parent 2313d8d976
commit 7508576fe5
  1. 2
      apps/explorer_web/lib/explorer_web/notifier.ex

@ -46,7 +46,7 @@ defmodule ExplorerWeb.Notifier do
transaction: transaction
})
if transaction.to_address && transaction.to_address != transaction.from_address do
if transaction.to_address_hash && transaction.to_address_hash != transaction.from_address_hash do
Endpoint.broadcast("addresses:#{transaction.to_address_hash}", "transaction", %{
address: transaction.to_address,
transaction: transaction

Loading…
Cancel
Save