diff --git a/src/GroundsForSupport.Client/src/App.tsx b/src/GroundsForSupport.Client/src/App.tsx index ac4a4b0..ab3e419 100644 --- a/src/GroundsForSupport.Client/src/App.tsx +++ b/src/GroundsForSupport.Client/src/App.tsx @@ -7,7 +7,7 @@ import PaymentForm from './PaymentForm'; import PaymentConfirmationCard from './PaymentConfirmationCard'; import PreviousPaymentsList from './PreviousPaymentsList'; -const stripe = loadStripe(import.meta.env.VITE_STRIPE_API_KEY); +const stripe = loadStripe(import.meta.env.VITE_STRIPE_API_KEY as string); function App() { const queryParams = new URLSearchParams(window.location.search); @@ -44,7 +44,7 @@ function App() { return; } - const data = await res.json(); + const data = await res.json() as { clientSecret: string }; setSecret(data.clientSecret); } catch (err) { console.error(err); diff --git a/src/GroundsForSupport.Client/src/CheckoutForm.tsx b/src/GroundsForSupport.Client/src/CheckoutForm.tsx index 6e7cac6..245a8f4 100644 --- a/src/GroundsForSupport.Client/src/CheckoutForm.tsx +++ b/src/GroundsForSupport.Client/src/CheckoutForm.tsx @@ -32,7 +32,7 @@ export default function CheckoutForm() { } return ( -