Skip to content

Commit

Permalink
Improved: optmized the if-else condition on audit details page (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Nov 27, 2024
1 parent 941a28b commit dc5df8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/audit-product-details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,8 @@ export default defineComponent({
const featureOption = getFeature(variant.featureHierarchy, `1/${firstFeature}`)
if(!features[firstFeature]){
features[firstFeature] = [featureOption]
} else{
if(!features[firstFeature].includes(featureOption)) features[firstFeature].push(featureOption)
} else if(!features[firstFeature].includes(featureOption)){
features[firstFeature].push(featureOption)
}
})
}
Expand Down

0 comments on commit dc5df8e

Please sign in to comment.