return a default credit and debt response when one doesn't have a voucher

This commit is contained in:
Alfred Kamanda 2026-02-23 11:05:43 +03:00
parent 3bfa9820dd
commit 6e426bf6a0
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -125,6 +125,7 @@ func (h *MenuHandlers) CalculateCreditAndDebt(ctx context.Context, sym string, i
// Fetch session data // Fetch session data
_, activeBal, activeSym, activeAddress, publicKey, activeDecimal, err := h.getSessionData(ctx, sessionId) _, activeBal, activeSym, activeAddress, publicKey, activeDecimal, err := h.getSessionData(ctx, sessionId)
if err != nil { if err != nil {
res.Content = l.Get("Credit: %s KSH\nDebt: %s %s\n", "0", "0", string(activeSym))
return res, nil return res, nil
} }