handle orchanrd count case
This commit is contained in:
parent
528e693ef1
commit
8331c433c5
|
@ -24,11 +24,16 @@ defmodule ZcashExplorerWeb.TransactionView do
|
|||
when tx.orchard.actions == nil do
|
||||
0
|
||||
end
|
||||
|
||||
|
||||
def orchard_actions(tx)
|
||||
when tx.orchard.actions != nil do
|
||||
length(tx.orchard.actions)
|
||||
end
|
||||
|
||||
def orchard_actions(tx) do
|
||||
0
|
||||
end
|
||||
|
||||
|
||||
def format_zec(value) when value == nil do
|
||||
""
|
||||
|
|
Loading…
Reference in New Issue