feat(promo): Добавлена локализация при изменении процента скидки и логи при активации промокода на скидку

This commit is contained in:
VAQYBIN
2026-01-20 01:26:14 +05:00
parent e7df5e539c
commit fed1c1c960
5 changed files with 50 additions and 8 deletions
+1 -4
View File
@@ -445,10 +445,7 @@ async def promo_edit_field_handler(callback: types.CallbackQuery, state: FSMCont
}
prompt_key = prompts.get(field, "error_occurred_try_again")
if field == "discount_percentage":
prompt_text = "Enter the new discount percentage (1-100):"
else:
prompt_text = _(prompt_key)
prompt_text = _(prompt_key)
await state.set_state(AdminStates.waiting_for_promo_edit_details)
await callback.message.edit_text(prompt_text)