Merge pull request #172 from houdiniproject/fix_for_event_donations

Donating from event page had a bug. This fixes
This commit is contained in:
Eric Schultz 2019-03-01 15:18:12 -06:00 committed by GitHub
commit 8192ac0212
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ function create_donation(donation) {
donation.amount = format.dollarsToCents(donation.dollars)
delete donation.dollars
}
return request.post(path).send({donation: donation}).perform()
return request.post(path).set('Content-Type', 'application/json').send( donation).perform()
// Reset the card form ui
.then(function(resp) {
appl.def('card_form', {status: '', error: false})