фикс активации купона

- Корректировка состояния активации купона
This commit is contained in:
Capybara-z
2025-04-01 22:10:40 +03:00
committed by GitHub
parent 860dbe1315
commit 8c27e43c52
+3 -1
View File
@@ -60,7 +60,9 @@ async def process_coupon_code(message: Message, state: FSMContext, session: Any)
builder.row(InlineKeyboardButton(text=MAIN_MENU, callback_data="profile"))
await message.answer(activation_result, reply_markup=builder.as_markup())
await state.clear()
if activation_result.startswith(COUPON_ACTIVATED_SUCCESS_MSG.split('.')[0]):
await state.clear()
async def activate_coupon(user_id: int, coupon_code: str, session: Any):