Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
zenit2001 authored Nov 25, 2024
1 parent dab9a46 commit 7d69702
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ function placeOrder(req, res, next) {
// Handles payment authorization
var handlePaymentResult = adyenHelpers.handlePayments(order);

let mainPaymentInstrument;
let mainPaymentInstrument;
if (giftCardsAdded) {
mainPaymentInstrument = order.getPaymentInstruments(
AdyenHelper.getOrderMainPaymentInstrumentType(order)
)[0];
mainPaymentInstrument = order.getPaymentInstruments(
AdyenHelper.getOrderMainPaymentInstrumentType(order)
)[0];
giftCardsAdded.forEach((giftCard) => {
const divideBy = AdyenHelper.getDivisorForCurrency(mainPaymentInstrument.paymentTransaction.getAmount());
const amount = {
Expand Down

0 comments on commit 7d69702

Please sign in to comment.