From 8331c433c583d91768ee20c06c4184ba9b180b98 Mon Sep 17 00:00:00 2001 From: Vamsi Krishna B Date: Sun, 21 Aug 2022 19:28:06 +0530 Subject: [PATCH] handle orchanrd count case --- lib/zcash_explorer_web/views/transaction_view.ex | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/zcash_explorer_web/views/transaction_view.ex b/lib/zcash_explorer_web/views/transaction_view.ex index 984e1c1..f9bbeb4 100644 --- a/lib/zcash_explorer_web/views/transaction_view.ex +++ b/lib/zcash_explorer_web/views/transaction_view.ex @@ -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 ""