- Removed useless comments

This commit is contained in:
Alexis
2021-03-29 11:09:51 +02:00
parent 61926f60fd
commit a9f89fe5d6
2 changed files with 1 additions and 3 deletions

View File

@@ -15,7 +15,6 @@
// API
import { fetchCelestials } from '@/api/le-systeme-solaire'
// Global methods
import CelestialsList from '@/components/celestials/CelestialsList.vue'
export default {
@@ -23,6 +22,7 @@ export default {
components: {
CelestialsList
},
data () {
return {
celestials: []

View File

@@ -31,10 +31,8 @@ export const actions = {
toggleFav: ({ commit, getters }, celestialId) => {
// If the celestial is not faved
if (!getters.isFav(celestialId)) {
// ... favs it
commit('addFav', celestialId)
} else {
// ...else unfavs
commit('removeFav', celestialId)
}
}