Skip to content

Commit

Permalink
[ECP-8907] Use nullish coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
candemiralp committed Jan 25, 2024
1 parent 92dc9fc commit 4a8f7c1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions view/frontend/web/js/model/adyen-payment-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,9 @@ define(

if (customer.isLoggedIn()) {
serviceUrl = urlBuilder.createUrl('/adyen/orders/carts/mine/payment-status', {});
}
else {
if (quoteId == null){
quoteId = quote.getQuoteId()
}
} else {
serviceUrl = urlBuilder.createUrl('/adyen/orders/guest-carts/:cartId/payment-status', {
cartId: quoteId
cartId: quoteId ?? quote.getQuoteId()
});
}

Expand Down

0 comments on commit 4a8f7c1

Please sign in to comment.