From cbbd7971d7b49ff74f48a5157c1b4e86ad028dad Mon Sep 17 00:00:00 2001 From: Duncan Date: Mon, 3 Feb 2025 09:33:21 +0200 Subject: [PATCH] diff and eslint changes --- .../components/RegistrationsV2/Register/PaymentStep.jsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/webpacker/components/RegistrationsV2/Register/PaymentStep.jsx b/app/webpacker/components/RegistrationsV2/Register/PaymentStep.jsx index 4f6fe1a8e0..f2f976b3e2 100644 --- a/app/webpacker/components/RegistrationsV2/Register/PaymentStep.jsx +++ b/app/webpacker/components/RegistrationsV2/Register/PaymentStep.jsx @@ -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, @@ -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'; @@ -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({ @@ -93,7 +91,7 @@ export default function PaymentStep({ if (!competitionInfo['registration_currently_open?']) { return ( - + ); }