From 9c8fd68ee3f1c3a6e3ac70a39949bc75100a1265 Mon Sep 17 00:00:00 2001 From: Artem Tsyrulnikov Date: Sat, 28 Feb 2026 13:33:36 +0300 Subject: [PATCH] fix --- tg_bot/screens/purchase_optional_details.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tg_bot/screens/purchase_optional_details.go b/tg_bot/screens/purchase_optional_details.go index 2c40955..3dbf1fa 100644 --- a/tg_bot/screens/purchase_optional_details.go +++ b/tg_bot/screens/purchase_optional_details.go @@ -1113,6 +1113,10 @@ func (s *PurchaseOptionalDetails) renderParamScreens(b *bot.Bot, mode bot.Render } func (s *PurchaseOptionalDetails) renderParamChannels(b *bot.Bot, mode bot.RenderMode, param string) { + // Сбрасываем на редактирование при смене параметра + if s.CurrentParam != param || s.ChannelEditMode == "" { + s.ChannelEditMode = "edit" + } s.CurrentParam = param text := fmt.Sprintf("%s — по каналам\n\n", s.paramTitle(param)) text += s.renderParamChannelSummary(param) + "\n\n" @@ -1130,8 +1134,6 @@ func (s *PurchaseOptionalDetails) renderParamChannels(b *bot.Bot, mode bot.Rende } start, end := ui2.GetPageBounds(s.ParamPage, perPage, total) - // Всегда сбрасываем на редактирование при входе - s.ChannelEditMode = "edit" var rows [][]echotron.InlineKeyboardButton