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

@ -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