use a single FlagReset append statement

This commit is contained in:
Alfred Kamanda 2025-05-30 05:09:27 +03:00
parent 3075070e14
commit a96802f10f
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

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