Skip to content

Commit

Permalink
Fix button to change exchange sum currency in escrow
Browse files Browse the repository at this point in the history
Signed-off-by: alfred richardsn <rchrdsn@protonmail.ch>
  • Loading branch information
r4rdsn committed Mar 14, 2020
1 parent 5b447ef commit 297f932
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/handlers/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,11 +320,9 @@ async def escrow_button(call: types.CallbackQuery, order: OrderType):
)
answer = i18n("send_exchange_sum {currency}").format(currency=sum_currency)
if edit:
cancel_data = call.message.reply_markup.inline_keyboard[1][0].callback_data
keyboard.row(
types.InlineKeyboardButton(
i18n("cancel"),
callback_data=call.message.reply_markup[1][1].callback_data,
)
types.InlineKeyboardButton(i18n("cancel"), callback_data=cancel_data)
)
await database.escrow.update_one(
{"pending_input_from": call.from_user.id},
Expand Down

0 comments on commit 297f932

Please sign in to comment.