Merge pull request #172 from houdiniproject/fix_for_event_donations
Donating from event page had a bug. This fixes
This commit is contained in:
commit
8192ac0212
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ function create_donation(donation) {
|
||||||
donation.amount = format.dollarsToCents(donation.dollars)
|
donation.amount = format.dollarsToCents(donation.dollars)
|
||||||
delete 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
|
// Reset the card form ui
|
||||||
.then(function(resp) {
|
.then(function(resp) {
|
||||||
appl.def('card_form', {status: '', error: false})
|
appl.def('card_form', {status: '', error: false})
|
||||||
|
|
Loading…
Reference in a new issue