Merge pull request #24 from nighthawk-apps/v5orchard

handle orchanrd count case
This commit is contained in:
Vamsi Krishna B 2022-08-21 19:29:11 +05:30 committed by GitHub
commit bd2abc18d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
""