next() { const uploadFiles = () => { return this.fields.upload.value === 'yes'; }; return branch( redirectTo(this.journey.steps.Upload).if(uploadFiles), redirectTo(this.journey.steps.CheckYourAnswers) ); }
next() { const amendPetition = () => { return this.fields.amendPetition.value === 'yes'; }; return branch( redirectTo(this.journey.steps.AmendApplication) .if(amendPetition), redirectTo(this.journey.steps.ApplyForDecreeNisi) ); }