Show empty amounts as zero

pull/90/head
Martin Boehm 2018-11-26 11:26:52 +01:00
parent 792fa76887
commit 14efbb02b0
1 changed files with 3 additions and 0 deletions

View File

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