Skip to content

Commit

Permalink
fix(admin-ui): Prevent duplicate order state change on manual payment
Browse files Browse the repository at this point in the history
Relates to #2204
  • Loading branch information
michaelbromley committed Jun 12, 2023
1 parent 0e5129e commit eadc479
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -337,9 +337,7 @@ export class OrderDetailComponent
order.nextStates,
);
} else {
return this.dataService.order
.transitionToState(this.id, 'PaymentSettled')
.pipe(mapTo('PaymentSettled'));
return of('PaymentSettled');
}
case 'ManualPaymentStateError':
this.notificationService.error(addManualPaymentToOrder.message);
Expand Down

0 comments on commit eadc479

Please sign in to comment.