Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Jul 18, 2024
1 parent c4e0cfc commit f9cf556
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/cancel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ pub async fn cancel_action(
}

if order.kind == OrderKind::Sell.to_string()
&& order.status == Status::WaitingBuyerInvoice.to_string()
&& (order.status == Status::WaitingBuyerInvoice.to_string()
|| order.status == Status::WaitingBuyerInvoice.to_string())
{
cancel_add_invoice(ln_client, &mut order, event, pool, my_keys).await?;
}

if order.kind == OrderKind::Buy.to_string()
&& (order.status == Status::WaitingPayment.to_string()
|| order.status == Status::WaitingBuyerInvoice.to_string())
&& order.status == Status::WaitingPayment.to_string()
{
cancel_pay_hold_invoice(ln_client, &mut order, event, pool, my_keys).await?;
}
Expand Down

0 comments on commit f9cf556

Please sign in to comment.