syntax & variable renaming

This commit is contained in:
Kevin
2019-06-20 01:14:29 +02:00
parent 5f961ec19a
commit 652f7db4f7
2 changed files with 7 additions and 7 deletions

View File

@@ -13,15 +13,15 @@ import Card from '../components/Card'
export default {
data () {
return {
categoryTitle: this.$route.params.category,
categoryRouteTitle: this.$route.params.category,
categories: store,
}
},
computed: {
category() {
return this.categories.find(category => category.title.toLowerCase() === this.categoryTitle.toLowerCase())
return this.categories.find(category => category.title.toLowerCase() === this.categoryRouteTitle.toLowerCase())
}
},
components: { Card, },
components: { Card },
}
</script>