From 3bfc0169ee7c6709752fdc15934baa5a216861d4 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Sat, 7 Jun 2025 05:59:19 +0300 Subject: [PATCH] correctly set the flag_incorrect_pool flag --- handlers/application/menuhandler.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index 75ebd88..6dab472 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -2302,8 +2302,8 @@ func (h *MenuHandlers) ViewPool(ctx context.Context, sym string, input []byte) ( res.FlagSet = append(res.FlagSet, flag_api_error) return res, nil } - - if (poolResp == &dataserviceapi.PoolDetails{}) { + + if len(poolResp.PoolSymbol) == 0 { // If the API does not return the data, set the flag res.FlagSet = append(res.FlagSet, flag_incorrect_pool) return res, nil