Skip to content
This repository has been archived by the owner on Mar 27, 2023. It is now read-only.

Commit

Permalink
Updated ConsentComponent to use new api
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrei committed May 9, 2018
1 parent 171d1c4 commit 423f219
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion app/javascript/consent/ConsentComponent.js
Expand Up @@ -35,7 +35,6 @@ class ConsentComponent extends Component {
if (hidden) return null;
return (
<div className={classnames('ConsentComponent', variant)}>
<input type="hidden" name="consent_enabled" value="1" />
<div className="ConsentComponent--opt-in-reason opt-in-reason">
<FormattedHTMLMessage id="consent.opt_in_reason" />
</div>
Expand Down
1 change: 1 addition & 0 deletions app/services/manage_action.rb
Expand Up @@ -103,6 +103,7 @@ def sanitize_params
if @extra_attrs[:donation]
@params[:donor_status] = @params[:is_subscription] ? 'recurring_donor' : 'donor'
end
@params[:consented] = ActiveRecord::Type::Boolean.new.deserialize(@params[:consented])
end

def requires_consent?
Expand Down

0 comments on commit 423f219

Please sign in to comment.