From 058d802c0f312e0fe01c54205a0db7ce325eaa61 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Fri, 18 Jul 2025 16:04:24 +0300 Subject: [PATCH] return on navigation inputs to prevent calling the API --- handlers/application/pools.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/handlers/application/pools.go b/handlers/application/pools.go index c53fa82..65e5f4c 100644 --- a/handlers/application/pools.go +++ b/handlers/application/pools.go @@ -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 {