After creating a new creator, redirect to his slug

This commit is contained in:
2025-04-15 23:37:58 -04:00
parent 4b67f9f445
commit 41aeb81a00

View File

@@ -45,7 +45,7 @@ async function createAccount() {
slugReservationId: creatorNameReservationId.value,
});
await creatorProfileStore.fetchCreatorProfile();
await router.push(`/@${creatorProfileStore.creator.name}`);
await router.push(`/@${creatorProfileStore.creator.slug}`);
} catch (error) {
if (error?.response?.data?.errors) {
errorMessage.value = error.response.data.errors[0]?.['reason'] || 'An unexpected error occurred.';