fix(updates): Fix learn -> server communication

This commit is contained in:
Bouncey
2018-09-30 12:19:37 +01:00
committed by Stuart Taylor
parent 4eb364f919
commit 3da2a3eea9
8 changed files with 19 additions and 66 deletions

View File

@@ -4,7 +4,7 @@ import isEmail from 'validator/lib/isEmail';
import CardForm from './CardForm';
import { injectStripe } from 'react-stripe-elements';
import { postJSON$ } from '../../../templates/Challenges/utils/ajax-stream';
import postUpdate$ from '../../../templates/Challenges/utils/postUpdate$';
const propTypes = {
email: PropTypes.string,
@@ -102,7 +102,7 @@ class DonateForm extends PureComponent {
processing: true
}
}));
return postJSON$('/external/donate/charge-stripe', {
return postUpdate$('/donate/charge-stripe', {
token,
amount
}).subscribe(