chore: remove alias tag,use lower case b for balance
This commit is contained in:
parent
0cbe391209
commit
830d867ac8
@ -1476,9 +1476,9 @@ func (h *MenuHandlers) CheckBalance(ctx context.Context, sym string, input []byt
|
|||||||
if db.IsNotFound(err) {
|
if db.IsNotFound(err) {
|
||||||
balance := "0.00"
|
balance := "0.00"
|
||||||
if alias != "" {
|
if alias != "" {
|
||||||
content = l.Get("Alias: %s\nBalance: %s\n", alias, balance)
|
content = l.Get("%s balance: %s\n", alias, balance)
|
||||||
} else {
|
} else {
|
||||||
content = l.Get("Balance: %s\n", balance)
|
content = l.Get("balance: %s\n", balance)
|
||||||
}
|
}
|
||||||
res.Content = content
|
res.Content = content
|
||||||
return res, nil
|
return res, nil
|
||||||
@ -1505,9 +1505,9 @@ func (h *MenuHandlers) CheckBalance(ctx context.Context, sym string, input []byt
|
|||||||
balStr := fmt.Sprintf("%.2f %s", balFloat, activeSym)
|
balStr := fmt.Sprintf("%.2f %s", balFloat, activeSym)
|
||||||
|
|
||||||
if alias != "" {
|
if alias != "" {
|
||||||
content = l.Get("Alias: %s\nBalance: %s\n", alias, balStr)
|
content = l.Get("%s balance: %s\n", alias, balStr)
|
||||||
} else {
|
} else {
|
||||||
content = l.Get("Balance: %s\n", balStr)
|
content = l.Get("balance: %s\n", balStr)
|
||||||
}
|
}
|
||||||
res.Content = content
|
res.Content = content
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user