Improves the brandingStore usages

This commit is contained in:
2024-09-22 03:03:44 -04:00
parent 79785846c6
commit d290d56cb8
3 changed files with 23 additions and 77 deletions

View File

@@ -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
}