Merge pull request #24 from nighthawk-apps/v5orchard
handle orchanrd count case
This commit is contained in:
commit
bd2abc18d3
|
@ -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