Compare commits
No commits in common. "101afd5ebd2a581a0e1be43d54861bb645d8c56e" and "0cbe391209760dc56cb16f7506ec9de6987c2521" have entirely different histories.
101afd5ebd
...
0cbe391209
@ -1476,9 +1476,9 @@ func (h *MenuHandlers) CheckBalance(ctx context.Context, sym string, input []byt
|
||||
if db.IsNotFound(err) {
|
||||
balance := "0.00"
|
||||
if alias != "" {
|
||||
content = l.Get("%s balance: %s\n", alias, balance)
|
||||
content = l.Get("Alias: %s\nBalance: %s\n", alias, balance)
|
||||
} else {
|
||||
content = l.Get("balance: %s\n", balance)
|
||||
content = l.Get("Balance: %s\n", balance)
|
||||
}
|
||||
res.Content = content
|
||||
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)
|
||||
|
||||
if alias != "" {
|
||||
content = l.Get("%s balance: %s\n", alias, balStr)
|
||||
content = l.Get("Alias: %s\nBalance: %s\n", alias, balStr)
|
||||
} else {
|
||||
content = l.Get("balance: %s\n", balStr)
|
||||
content = l.Get("Balance: %s\n", balStr)
|
||||
}
|
||||
res.Content = content
|
||||
|
||||
|
@ -284,7 +284,7 @@
|
||||
},
|
||||
{
|
||||
"input": "1234",
|
||||
"expectedContent": "{balance}\n\n0:Back\n9:Quit"
|
||||
"expectedContent": "Balance: {balance}\n\n0:Back\n9:Quit"
|
||||
},
|
||||
{
|
||||
"input": "0",
|
||||
|
Loading…
Reference in New Issue
Block a user