diff --git a/client/lib/invites/stores/invite-accepted.js b/client/lib/invites/stores/invite-accepted.js index eecfae8520402..5c94657f33456 100644 --- a/client/lib/invites/stores/invite-accepted.js +++ b/client/lib/invites/stores/invite-accepted.js @@ -10,7 +10,7 @@ const InviteMessageStore = createReducerStore( ( state, payload ) => { switch ( action.type ) { case ActionTypes.DISPLAY_INVITE_ACCEPTED_NOTICE: newState.accepted = true; - newState.siteId = action.invite.site.ID; + newState.siteId = action.siteId; return newState; case ActionTypes.DISPLAY_INVITE_DECLINED_NOTICE: newState.declined = true; diff --git a/client/my-sites/invites/invite-accept-logged-in/index.jsx b/client/my-sites/invites/invite-accept-logged-in/index.jsx index d659396c53821..796b3ce4a1933 100644 --- a/client/my-sites/invites/invite-accept-logged-in/index.jsx +++ b/client/my-sites/invites/invite-accept-logged-in/index.jsx @@ -25,7 +25,7 @@ export default React.createClass( { accept() { this.setState( { submitting: true } ); - acceptInvite( this.props.invite, () => page( this.props.redirectTo ) ); + acceptInvite( this.props, () => page( this.props.redirectTo ) ); }, render() { diff --git a/client/my-sites/invites/invite-accept-logged-out/index.jsx b/client/my-sites/invites/invite-accept-logged-out/index.jsx index 94ffb93210629..646fae6e889cf 100644 --- a/client/my-sites/invites/invite-accept-logged-out/index.jsx +++ b/client/my-sites/invites/invite-accept-logged-out/index.jsx @@ -35,7 +35,7 @@ export default React.createClass( { ( error, bearerToken ) => bearerToken && acceptInvite( - this.props.invite, + this.props, ( acceptInviteError ) => this.setState( { acceptInviteError, userData, bearerToken } ), bearerToken ) @@ -54,7 +54,7 @@ export default React.createClass( {