From 14efbb02b07899b4a700a87732c842c03077d5a3 Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Mon, 26 Nov 2018 11:26:52 +0100 Subject: [PATCH] Show empty amounts as zero --- server/public.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/public.go b/server/public.go index b2e5c5f2..f0a7c795 100644 --- a/server/public.go +++ b/server/public.go @@ -381,6 +381,9 @@ func formatTime(t time.Time) string { // for now return the string as it is // in future could be used to do coin specific formatting func formatAmount(a string) string { + if a == "" { + return "0" + } return a }