Skip to content

Commit

Permalink
diff and eslint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dunkOnIT committed Feb 3, 2025
1 parent 237155f commit cbbd797
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { PaymentElement, useElements, useStripe } from '@stripe/react-stripe-js';
import I18nHTMLTranslate from '../../I18nHTMLTranslate';
import React, { useEffect, useState } from 'react';
import {
Button,
Expand All @@ -12,6 +11,7 @@ import {
Message,
Segment,
} from 'semantic-ui-react';
import I18nHTMLTranslate from '../../I18nHTMLTranslate';
import { paymentFinishUrl } from '../../../lib/requests/routes.js.erb';
import { useDispatch } from '../../../lib/providers/StoreProvider';
import { setMessage } from './RegistrationMessage';
Expand Down Expand Up @@ -61,8 +61,6 @@ export default function PaymentStep({
// Create the PaymentIntent and obtain clientSecret
const data = await getPaymentTicket(competitionInfo, donationAmount);



const { client_secret: clientSecret } = data;

const { error } = await stripe.confirmPayment({
Expand Down Expand Up @@ -93,7 +91,7 @@ export default function PaymentStep({
if (!competitionInfo['registration_currently_open?']) {
return (
<Message color="red">
<I18nHTMLTranslate i18nKey="registrations.payment_form.errors.registration_closed" options={{ days: 3, time: 4 }} />
<I18nHTMLTranslate i18nKey="registrations.payment_form.errors.registration_closed"/>

Check failure on line 94 in app/webpacker/components/RegistrationsV2/Register/PaymentStep.jsx

View workflow job for this annotation

GitHub Actions / test

A space is required before closing bracket
</Message>
);
}
Expand Down

0 comments on commit cbbd797

Please sign in to comment.