Skip to content

Commit

Permalink
Invites: set activationKey and authKey as props
Browse files Browse the repository at this point in the history
  • Loading branch information
lezama committed Dec 4, 2015
1 parent 1bab1be commit 66f8749
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 3 additions & 1 deletion client/my-sites/invites/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export function acceptInvite( context ) {
InviteAccept,
{
siteId: context.params.site_id,
inviteKey: context.params.invitation_key
inviteKey: context.params.invitation_key,
activationKey: context.params.activation_key,
authKey: context.params.auth_key
}
),
document.getElementById( 'primary' )
Expand Down
10 changes: 5 additions & 5 deletions client/my-sites/invites/invite-accept/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ export default React.createClass( {
},

refreshInvite() {
const invite = InvitesStore.getInvite( this.props.site_id, this.props.invitation_key );
const error = InvitesStore.getInviteError( this.props.site_id, this.props.invitation_key );
const invite = InvitesStore.getInvite( this.props.siteId, this.props.inviteKey );
const error = InvitesStore.getInviteError( this.props.siteId, this.props.inviteKey );

if ( invite ) {
// add subscription-related keys to the invite
Object.assign( invite.invite, {
activationKey: this.props.activation_key,
authKey: this.props.auth_key
Object.assign( invite, {
activationKey: this.props.activationKey,
authKey: this.props.authKey
} );
}
this.setState( { invite, error } );
Expand Down

0 comments on commit 66f8749

Please sign in to comment.