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) => {
if (newValue) {
await fetchCreatorProfile();
if (value.value) {
if (value.value && value.value.name !== undefined) {
await router.push(`/@${value.value.name}`);
} else {
await router.push('/');