return on navigation inputs to prevent calling the API

This commit is contained in:
Alfred Kamanda 2025-07-18 16:04:24 +03:00
parent da64c3b80e
commit 058d802c0f
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -100,6 +100,10 @@ func (h *MenuHandlers) ViewPool(ctx context.Context, sym string, input []byte) (
flag_incorrect_pool, _ := h.flagManager.GetFlag("flag_incorrect_pool")
inputStr := string(input)
if inputStr == "0" || inputStr == "99" || inputStr == "88" || inputStr == "98" {
res.FlagReset = append(res.FlagReset, flag_incorrect_pool)
return res, nil
}
poolData, err := store.GetPoolData(ctx, h.userdataStore, sessionId, inputStr)
if err != nil {