From a96802f10f55dd172c3569a08a253e855057f880 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Fri, 30 May 2025 05:09:27 +0300 Subject: [PATCH] use a single FlagReset append statement --- handlers/application/menuhandler.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/handlers/application/menuhandler.go b/handlers/application/menuhandler.go index a0a6eec..86f70b7 100644 --- a/handlers/application/menuhandler.go +++ b/handlers/application/menuhandler.go @@ -2803,8 +2803,7 @@ func (h *MenuHandlers) SwapMaxLimit(ctx context.Context, sym string, input []byt flag_api_error, _ := h.flagManager.GetFlag("flag_api_error") flag_low_swap_amount, _ := h.flagManager.GetFlag("flag_low_swap_amount") - res.FlagReset = append(res.FlagReset, flag_incorrect_voucher) - res.FlagReset = append(res.FlagSet, flag_low_swap_amount) + res.FlagReset = append(res.FlagReset, flag_incorrect_voucher, flag_low_swap_amount) inputStr := string(input) if inputStr == "0" {