From a799e19afc4ffdcef879e8d182e2c846cc21bf32 Mon Sep 17 00:00:00 2001 From: Carlosokumu Date: Thu, 12 Dec 2024 15:47:07 +0300 Subject: [PATCH] remove check for '0' input --- internal/handlers/ussd/menuhandler.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/internal/handlers/ussd/menuhandler.go b/internal/handlers/ussd/menuhandler.go index c5356d0..6eeaeb7 100644 --- a/internal/handlers/ussd/menuhandler.go +++ b/internal/handlers/ussd/menuhandler.go @@ -732,9 +732,7 @@ func (h *Handlers) ResetIncorrectPin(ctx context.Context, sym string, input []by // Setback sets the flag_back_set flag when the navigation is back func (h *Handlers) SetBack(ctx context.Context, sym string, input []byte) (resource.Result, error) { var res resource.Result - //TODO: - //Add check if the navigation is lateral nav instead of checking the input. - if string(input) == "0" { + if h.st.Back() { flag_back_set, _ := h.flagManager.GetFlag("flag_back_set") res.FlagSet = append(res.FlagSet, flag_back_set) }