diff --git a/client/src/components/global/navbar/navbar.vue b/client/src/components/global/navbar/navbar.vue
index c33f250..522147d 100644
--- a/client/src/components/global/navbar/navbar.vue
+++ b/client/src/components/global/navbar/navbar.vue
@@ -45,11 +45,9 @@
},
methods: {
logoutUser() {
- if (this.$cookies.get('U_') != null) {
- this.$cookies.remove('U_')
- this.$store.commit('logout')
- this.$router.push('/')
- }
+ this.$cookies.remove('U_')
+ this.$store.commit('logout')
+ this.$router.push('/')
}
}
}
diff --git a/client/src/components/spells/spells-list.vue b/client/src/components/spells/spells-list.vue
index 8e93f4c..db2f115 100644
--- a/client/src/components/spells/spells-list.vue
+++ b/client/src/components/spells/spells-list.vue
@@ -42,7 +42,7 @@
{
this.loading = true
- let spells = this.computedSpells
+ let spells = this.filteredSpells
spells.push(v.data)
this.spells = spells[0]
})
@@ -151,7 +151,7 @@ export default {
Schools.getSpellsFromOne(this.school_id)
.then(v => {
this.loading = true
- let spells = this.computedSpells
+ let spells = this.filteredSpells
spells.push(v.data.spells)
this.spells = spells[0]
})
@@ -169,7 +169,7 @@ export default {
Spells.getPage(this.currentIndex)
.then(v => {
this.loading = true
- let spells = this.computedSpells
+ let spells = this.filteredSpells
for (let i = 0; i < v.data.length; i++) {
const element = v.data[i];
spells.push(element)
@@ -198,7 +198,7 @@ export default {
addSpell(e) {
Spells.getOne(e.id)
.then(v => {
- let spells = this.computedSpells
+ let spells = this.filteredSpells
spells.unshift(v.data)
})
.then(() => {