diff --git a/api-server/server/boot/donate.js b/api-server/server/boot/donate.js index 97857826a1..e3680d2b2a 100644 --- a/api-server/server/boot/donate.js +++ b/api-server/server/boot/donate.js @@ -108,12 +108,6 @@ export default function donateBoot(app, done) { function createStripeDonation(req, res) { const { user, body } = req; - if (!user || !body) { - return res - .status(500) - .send({ error: 'User must be signed in for this request.' }); - } - const { amount, duration, diff --git a/client/src/components/Donation/DonateForm.js b/client/src/components/Donation/DonateForm.js index 7675270a80..26f30dc196 100644 --- a/client/src/components/Donation/DonateForm.js +++ b/client/src/components/Donation/DonateForm.js @@ -3,7 +3,6 @@ import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { - Button, Tabs, Tab, Row, @@ -19,7 +18,6 @@ import { defaultAmount, defaultStateConfig } from '../../../../config/donation-settings'; -import { apiLocation } from '../../../../config/env.json'; import Spacer from '../helpers/Spacer'; import DonateFormChildViewForHOC from './DonateFormChildViewForHOC'; import { @@ -57,11 +55,6 @@ const mapDispatchToProps = { navigate }; -const createOnClick = navigate => e => { - e.preventDefault(); - return navigate(`${apiLocation}/signin?returnTo=donate`); -}; - class DonateForm extends Component { constructor(...args) { super(...args); @@ -207,25 +200,13 @@ class DonateForm extends Component { } render() { - const { isSignedIn, navigate, showLoading } = this.props; - return ( {this.renderDurationAmountOptions()} - {!showLoading && !isSignedIn ? ( - - ) : ( - this.renderDonationOptions() - )} + {this.renderDonationOptions()} );