Skip to content

Commit

Permalink
Merge pull request #1764 from get10101/chore/improve-logs-on-send-pay…
Browse files Browse the repository at this point in the history
…ment

chore: Log order has been filled only if pay with usdp
  • Loading branch information
holzeis authored Dec 16, 2023
2 parents 481a3ca + 36c8bda commit 125ee02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mobile/lib/features/wallet/send/execute_payment_modal.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ class _ExecuteUsdpPaymentState extends State<ExecuteUsdpPayment> {
String text = "";

if ((pendingOrder?.state == PendingOrderState.orderFilled || !widget.payWithUsdp) && !sent) {
logger.d("Order has been filled, attempting to send payment");
if (widget.payWithUsdp) {
logger.d("Order has been filled, attempting to send payment");
}
walletService.sendPayment(widget.destination, widget.amount).catchError((error) {
logger.e("Failed to send payment: $error");
context.read<PaymentChangeNotifier>().failPayment();
Expand Down

0 comments on commit 125ee02

Please sign in to comment.