Capitalize statement details and add a space after the colon

This commit is contained in:
Alfred Kamanda 2024-12-11 19:31:17 +03:00
parent b1e4b63c6a
commit 6f3b30e2fe
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -1895,9 +1895,9 @@ func (h *Handlers) GetTransactionsList(ctx context.Context, sym string, input []
value := strings.TrimSpace(values[i]) value := strings.TrimSpace(values[i])
date := strings.Split(strings.TrimSpace(dates[i]), " ")[0] date := strings.Split(strings.TrimSpace(dates[i]), " ")[0]
status := "received" status := "Received"
if sender == string(publicKey) { if sender == string(publicKey) {
status = "sent" status = "Sent"
} }
formattedTransactions = append(formattedTransactions, fmt.Sprintf("%d: %s %s %s %s", i+1, status, value, sym, date)) formattedTransactions = append(formattedTransactions, fmt.Sprintf("%d: %s %s %s %s", i+1, status, value, sym, date))