Skip to content

Commit

Permalink
Reverted a wrong check on cancel.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Feb 11, 2025
1 parent add5ce6 commit 566e6f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/cancel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ pub async fn cancel_order_by_taker(
let buyer_pubkey = order.get_buyer_pubkey().map_err(MostroInternalErr)?;

//We notify the creator that the order was cancelled only if the taker had already done his part before
if (order.is_sell_order().is_ok() && order.check_status(Status::WaitingBuyerInvoice).is_ok())
|| (order.is_buy_order().is_ok() && order.check_status(Status::WaitingPayment).is_ok())
if (order.is_sell_order().is_ok() && order.check_status(Status::WaitingPayment).is_ok())
|| (order.is_buy_order().is_ok() && order.check_status(Status::WaitingBuyerInvoice).is_ok())
{
enqueue_order_msg(
request_id,
Expand Down

0 comments on commit 566e6f1

Please sign in to comment.