correctly set the flag_incorrect_pool flag

This commit is contained in:
Alfred Kamanda 2025-06-07 05:59:19 +03:00
parent 5d8daf56bc
commit 3bfc0169ee
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -2303,7 +2303,7 @@ func (h *MenuHandlers) ViewPool(ctx context.Context, sym string, input []byte) (
return res, nil return res, nil
} }
if (poolResp == &dataserviceapi.PoolDetails{}) { if len(poolResp.PoolSymbol) == 0 {
// If the API does not return the data, set the flag // If the API does not return the data, set the flag
res.FlagSet = append(res.FlagSet, flag_incorrect_pool) res.FlagSet = append(res.FlagSet, flag_incorrect_pool)
return res, nil return res, nil