mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Website: Fix assertion error in save-questionnaire-progress (#18818)
Related to: https://github.com/fleetdm/fleet/issues/18817 Changes: - Updated a conditional statement in save-questionnaire-progress to check the correct variable for a user's previous answer to the "Have you ever used Fleet?" question
This commit is contained in:
parent
15ab9a4ed8
commit
6e1bb1b85b
1 changed files with 2 additions and 2 deletions
|
|
@ -192,7 +192,7 @@ module.exports = {
|
|||
} else if(currentStep === 'how-many-hosts') {
|
||||
if(['yes-deployed'].includes(hasUsedFleetAnswer)) {
|
||||
psychologicalStage = '6 - Has team buy-in';
|
||||
} else if(valueFromFormData === 'yes-recently-deployed'){
|
||||
} else if(['yes-recently-deployed'].includes(hasUsedFleetAnswer)){
|
||||
psychologicalStage = '5 - Personally confident';
|
||||
} else {
|
||||
// IWMIH then we want Fleet to host for us (either because we wanted that from the get-go, or we backtracked because deploying looked too time-consuming)
|
||||
|
|
@ -201,7 +201,7 @@ module.exports = {
|
|||
} else if(currentStep === 'will-you-be-self-hosting') {
|
||||
if(['yes-deployed'].includes(hasUsedFleetAnswer)) {
|
||||
psychologicalStage = '6 - Has team buy-in';
|
||||
} else if(valueFromFormData === 'yes-recently-deployed'){
|
||||
} else if(['yes-recently-deployed'].includes(hasUsedFleetAnswer)){
|
||||
psychologicalStage = '5 - Personally confident';
|
||||
} else { require('assert')(false, 'This should never happen.'); }
|
||||
}//fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue