Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang1221 committed Sep 2, 2024
1 parent 9efaa10 commit 0ef40e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/co/orange/ddanzi/service/PaymentService.java
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public ApiResponse<?> endPayment(UpdatePaymentRequestDto requestDto){
Payment payment = paymentRepository.findByOrder(order);
Item item = order.getItem();
Product product = item.getProduct();
if(isAvailableToChangePayment(buyer, payment)){
if(!isAvailableToChangePayment(buyer, payment)){
return ApiResponse.onFailure(Error.PAYMENT_CANNOT_CHANGE, null);
}

Expand Down

0 comments on commit 0ef40e9

Please sign in to comment.