When logging in, if we do not have a page, redirect to /

This commit is contained in:
2025-04-03 15:34:48 -04:00
parent dffa2152d9
commit 5f3f42d6e1

View File

@@ -17,7 +17,7 @@ export const useCreatorProfileStore = defineStore(
async (newValue) => { async (newValue) => {
if (newValue) { if (newValue) {
await fetchCreatorProfile(); await fetchCreatorProfile();
if (value.value) { if (value.value && value.value.name !== undefined) {
await router.push(`/@${value.value.name}`); await router.push(`/@${value.value.name}`);
} else { } else {
await router.push('/'); await router.push('/');