Show empty amounts as zero
parent
792fa76887
commit
14efbb02b0
|
@ -381,6 +381,9 @@ func formatTime(t time.Time) string {
|
||||||
// for now return the string as it is
|
// for now return the string as it is
|
||||||
// in future could be used to do coin specific formatting
|
// in future could be used to do coin specific formatting
|
||||||
func formatAmount(a string) string {
|
func formatAmount(a string) string {
|
||||||
|
if a == "" {
|
||||||
|
return "0"
|
||||||
|
}
|
||||||
return a
|
return a
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue