diff --git a/website/api/controllers/save-questionnaire-progress.js b/website/api/controllers/save-questionnaire-progress.js index 36794f96f6..1846c4daee 100644 --- a/website/api/controllers/save-questionnaire-progress.js +++ b/website/api/controllers/save-questionnaire-progress.js @@ -175,7 +175,7 @@ module.exports = { }//fi // Only update CRM records if the user's psychological stage changes. - if(currentStep !== userRecord.currentStep){ + if(psychologicalStage !== userRecord.psychologicalStage){ await sails.helpers.salesforce.updateOrCreateContactAndAccount.with({ emailAddress: this.req.me.emailAddress, firstName: this.req.me.firstName,