Skip to content

Commit

Permalink
refactor: ♻️ refactor typologies files
Browse files Browse the repository at this point in the history
  • Loading branch information
nutfdt committed May 28, 2024
1 parent 59cad7c commit 98fe856
Showing 1 changed file with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,22 @@ const selectedOptionStep = computed(() => {
const options = TYPOLOGIES.revolver?.securingSteps?.steps[1]?.options.concat(TYPOLOGIES.revolver?.securingSteps?.steps[2]?.options)
const matchingOption = options.find(option => option.value.toString() === selectedOptionStep.value)
let selectedOption = ''
const selectedOptionVideos = computed(() => {
let selectedOptionVideo = ''
if (options && selectedOptionStep.value) {
selectedOptionVideo = matchingOption ? matchingOption.video : ''
selectedOption = matchingOption ? matchingOption.video : ''
}
return selectedOptionVideo
return selectedOption
})
const selectedOptionTexts = computed(() => {
let selectedOptionText = ''
if (options && selectedOptionStep.value) {
selectedOptionText = matchingOption ? matchingOption.text_steps : ''
selectedOption = matchingOption ? matchingOption.text_steps : ''
}
return selectedOptionText
return selectedOption
})
</script>

Expand Down

0 comments on commit 98fe856

Please sign in to comment.