From ddcc2a49317fe6eb39561efa7bcc133a89922fe4 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Fri, 1 Mar 2019 14:51:26 -0600 Subject: [PATCH] Donating from event page had a bug. This fixes --- client/js/donations/create.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/js/donations/create.js b/client/js/donations/create.js index 5a6d8dba..6bdbce09 100644 --- a/client/js/donations/create.js +++ b/client/js/donations/create.js @@ -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})