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
|
when tx.orchard.actions == nil do
|
||||||
0
|
0
|
||||||
end
|
end
|
||||||
|
|
||||||
def orchard_actions(tx)
|
def orchard_actions(tx)
|
||||||
when tx.orchard.actions != nil do
|
when tx.orchard.actions != nil do
|
||||||
length(tx.orchard.actions)
|
length(tx.orchard.actions)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def orchard_actions(tx) do
|
||||||
|
0
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
def format_zec(value) when value == nil do
|
def format_zec(value) when value == nil do
|
||||||
""
|
""
|
||||||
|
|
Loading…
Reference in New Issue