Some cleanup
This commit is contained in:
@@ -22,6 +22,7 @@ function handleCreatorNameReservationIdChanged($event) {
|
||||
creatorNameReservationId.value = $event.value
|
||||
}
|
||||
|
||||
// TODO: The `fetchCreatorProfile` function should be private (push-up to the store)!
|
||||
async function createAccount() {
|
||||
try {
|
||||
isOperationPending.value = true;
|
||||
@@ -31,7 +32,7 @@ async function createAccount() {
|
||||
creatorId: userProfileStore.user.id,
|
||||
slugReservationId: creatorNameReservationId.value,
|
||||
});
|
||||
await creatorProfileStore.fetchCurrentCreatorProfile();
|
||||
await creatorProfileStore.fetchCreatorProfile();
|
||||
await router.push(`/@${creatorProfileStore.creator.name}`);
|
||||
} catch (error) {
|
||||
if (error?.response?.data?.errors) {
|
||||
|
||||
Reference in New Issue
Block a user