Skip to content

Commit

Permalink
refactor: ♻️ standardize securing steps on typologies files
Browse files Browse the repository at this point in the history
  • Loading branch information
nutfdt committed May 27, 2024
1 parent 86fc6c6 commit 40fb978
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const getNextRouteAfterResult = ({ securingTutorial, confidenceLevel, typ
if (isCardDetected === false && isMeasuredGun === true) { return { name: 'MissingCard' } } else { return { name: 'IdentificationTypologyResult' } }
}

const hasSecuringOptions = TYPOLOGIES[typology]?.securingSteps
const hasSecuringOptions = TYPOLOGIES[typology]?.options_step_1 || TYPOLOGIES[typology]?.options || TYPOLOGIES[typology]?.text_steps
if (!hasSecuringOptions) {
return { name: 'SecuringAchievement' }
}
Expand Down

0 comments on commit 40fb978

Please sign in to comment.