diff --git a/TeleBot/TeleBot/UI/MenuBuilder.cs b/TeleBot/TeleBot/UI/MenuBuilder.cs index 692bf2a..090f003 100644 --- a/TeleBot/TeleBot/UI/MenuBuilder.cs +++ b/TeleBot/TeleBot/UI/MenuBuilder.cs @@ -498,7 +498,19 @@ namespace TeleBot.UI } // Add confirm button when selections are complete - bool canConfirm = quantity == 1 ? selectedVariants.Count == 1 : selectedVariants.Count == quantity; + // For single items: need one selection from each variant type + // For multi-buy: need total selections == quantity + bool canConfirm; + if (quantity == 1) + { + // Check if all variant types have at least one selection + canConfirm = variantGroups.All(g => g.Any(v => selectedVariants.Contains(v.Name))); + } + else + { + // Multi-buy: need total selections == quantity + canConfirm = selectedVariants.Count == quantity; + } if (canConfirm) {