remove the api failure flag if no swappable vouchers are found

This commit is contained in:
Alfred Kamanda 2026-02-03 13:34:05 +03:00
parent 85b8775fd0
commit 42f7b0f8a7
Signed by: Alfred-mk
GPG Key ID: E60B2165A97F4D41

View File

@ -165,7 +165,6 @@ func (h *MenuHandlers) CalculateCreditAndDebt(ctx context.Context, sym string, i
// call the api using the activePoolAddress to get a list of SwapToSymbolsData
swappableVouchers, err := h.accountService.GetPoolSwappableFromVouchers(ctx, string(activePoolAddress), string(publicKey))
if err != nil {
res.FlagSet = append(res.FlagSet, flag_api_call_error)
logg.ErrorCtxf(ctx, "failed on GetPoolSwappableFromVouchers", "error", err)
return res, nil
}