Some cleanup

This commit is contained in:
2025-02-13 15:14:32 -05:00
parent 9c716b1520
commit bf5ba51c9f
4 changed files with 8 additions and 37 deletions

View File

@@ -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) {