Fix for not being able to edit cards

This commit is contained in:
Eric Schultz 2018-08-03 13:40:03 -05:00 committed by Eric Schultz
parent 5a0b638771
commit f8b3e79047
2 changed files with 2 additions and 1 deletions

View file

@ -68,7 +68,7 @@ state.changeAmountWizard = changeAmountWizard.init( {nonprofit:app.pageLoadData.
resp => request({
method: 'put'
, path: rdPath
, send: {edit_token: token, card_id: resp.id, card_name: resp.name}
, send: {edit_token: token, token: resp.token, card_name: resp.name}
}).load
, state.cardForm.saved$
)

View file

@ -8,6 +8,7 @@ module UpdateRecurringDonations
# Update the card id and name for a given recurring donation (provide rd['donation_id'])
def self.update_card_id(rd, token)
rd = rd.with_indifferent_access
ParamValidation.new({rd: rd, token: token},
{
rd: {is_hash: true, required: true},