handle orchanrd count case

This commit is contained in:
Vamsi Krishna B 2022-08-21 19:28:06 +05:30
parent 528e693ef1
commit 8331c433c5
1 changed files with 6 additions and 1 deletions

View File

@ -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
""