From d290d56cb80d351c9a8fc9c26856d729ff03dcfa Mon Sep 17 00:00:00 2001 From: Jonathan Bourdon Date: Sun, 22 Sep 2024 03:03:44 -0400 Subject: [PATCH] Improves the brandingStore usages --- src/stores/brandingStore.js | 2 +- src/views/creators/CreatorContent.vue | 36 ++++------------ src/views/creators/CreatorNews.vue | 62 ++++++--------------------- 3 files changed, 23 insertions(+), 77 deletions(-) diff --git a/src/stores/brandingStore.js b/src/stores/brandingStore.js index 6e8fb59..e54cabf 100644 --- a/src/stores/brandingStore.js +++ b/src/stores/brandingStore.js @@ -26,7 +26,7 @@ export const useBrandingStore = defineStore( async () => { console.log(`creator: ${route.params.creator}`) console.log(`currentBrand: ${currentBrand.value}`) - if (route.params.creator != currentBrand.value) { + if (route.params.creator !== currentBrand.value) { await fetchCreatorData(route.params.creator); currentBrand.value = route.params.creator } diff --git a/src/views/creators/CreatorContent.vue b/src/views/creators/CreatorContent.vue index 1cbba15..157d636 100644 --- a/src/views/creators/CreatorContent.vue +++ b/src/views/creators/CreatorContent.vue @@ -1,41 +1,21 @@  diff --git a/src/views/creators/CreatorNews.vue b/src/views/creators/CreatorNews.vue index 27614d3..1bf225b 100644 --- a/src/views/creators/CreatorNews.vue +++ b/src/views/creators/CreatorNews.vue @@ -1,63 +1,29 @@