Skip to content

Commit

Permalink
address feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardcho1231 committed Dec 1, 2023
1 parent 7e91bf4 commit cad4d3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/subscriptions-block/components/usePaymentOptions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useState, useEffect } from "react";
import useSales from "./useSales";

const STRIPE_PAYMENT_METHOD_ID = 18;
const PAYPAL_METOD_ID = 10;
const PAYPAL_METHOD_ID = 10;

const getPaymentMethodByID = (paymentOptions, paymentMethodTypeID, paymentMethodID) => {
const stripeDefault = paymentOptions?.find(
Expand Down Expand Up @@ -44,7 +44,7 @@ export const usePaymentOptions = (stripeIntentsDefaultID, paypalDefaultID) => {
STRIPE_PAYMENT_METHOD_ID,
stripeIntentsDefaultID,
);
const paypal = getPaymentMethodByID(options, PAYPAL_METOD_ID, paypalDefaultID);
const paypal = getPaymentMethodByID(options, PAYPAL_METHOD_ID, paypalDefaultID);
setPaymentOpts(options);
setPaypal(paypal);
setStripeIntents(stripe);
Expand All @@ -59,7 +59,7 @@ export const usePaymentOptions = (stripeIntentsDefaultID, paypalDefaultID) => {
paymentOpts,
stripeIntents,
paypal,
error
error
};
};

Expand Down

0 comments on commit cad4d3e

Please sign in to comment.