After creating a new creator, redirect to his slug
This commit is contained in:
@@ -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.';
|
||||
|
||||
Reference in New Issue
Block a user