diff --git a/components/invitation_modal/invitation_modal.jsx b/components/invitation_modal/invitation_modal.jsx index c0696ebcf944..19b511cb1afd 100644 --- a/components/invitation_modal/invitation_modal.jsx +++ b/components/invitation_modal/invitation_modal.jsx @@ -95,7 +95,7 @@ export default class InvitationModal extends React.Component { } getBackFunction = () => { - if (this.state.step === STEPS_INVITE_CONFIRM && this.invitesNotSent.length > 0) { + if (this.state.step === STEPS_INVITE_CONFIRM && this.state.invitesNotSent.length > 0) { return this.goToPrevStep; } if ((this.state.step === STEPS_INVITE_MEMBERS || this.state.step === STEPS_INVITE_GUESTS) && this.props.canInviteGuests && this.props.canAddUsers) {