Fix loading for branding for undefined

This commit is contained in:
2024-10-07 01:20:30 -04:00
parent 98cdac9b0a
commit 68052996fd

View File

@@ -24,13 +24,13 @@ export const useBrandingStore = defineStore(
watch( watch(
() => route.params.creator, () => route.params.creator,
async () => { 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); if (route.params.creator !== undefined) {
await fetchCreatorData(route.params.creator)
currentBrand.value = route.params.creator currentBrand.value = route.params.creator
} }
} }
}
) )
const fetchCreatorData = async (creatorAlias) => { const fetchCreatorData = async (creatorAlias) => {