diff --git a/packages/builder/src/pages/builder/portal/manage/users/index.svelte b/packages/builder/src/pages/builder/portal/manage/users/index.svelte
index 61192063cc..1160cc109b 100644
--- a/packages/builder/src/pages/builder/portal/manage/users/index.svelte
+++ b/packages/builder/src/pages/builder/portal/manage/users/index.svelte
@@ -43,7 +43,7 @@
let createUserModal
let basicOnboardingModal
- function openBasicOnoboardingModal() {
+ function openBasicOnboardingModal() {
createUserModal.hide()
basicOnboardingModal.show()
}
@@ -91,7 +91,7 @@
-
+
diff --git a/packages/builder/src/stores/portal/users.js b/packages/builder/src/stores/portal/users.js
index cebf03d4c0..0b6b8f563a 100644
--- a/packages/builder/src/stores/portal/users.js
+++ b/packages/builder/src/stores/portal/users.js
@@ -11,7 +11,7 @@ export function createUsersStore() {
}
async function invite({ email, builder, admin }) {
- await API.inviteUser({
+ return API.inviteUser({
email,
builder,
admin,
@@ -19,7 +19,7 @@ export function createUsersStore() {
}
async function acceptInvite(inviteCode, password) {
- await API.acceptInvite({
+ return API.acceptInvite({
inviteCode,
password,
})
diff --git a/packages/frontend-core/src/api/user.js b/packages/frontend-core/src/api/user.js
index d1fe7f7251..cfe66873f4 100644
--- a/packages/frontend-core/src/api/user.js
+++ b/packages/frontend-core/src/api/user.js
@@ -113,11 +113,11 @@ export const buildUserEndpoints = API => ({
},
/**
- * Accepts an invitation to join the platform and creates a user.
+ * Accepts an invite to join the platform and creates a user.
* @param inviteCode the invite code sent in the email
* @param password the password for the newly created user
*/
- acceptInvitation: async ({ inviteCode, password }) => {
+ acceptInvite: async ({ inviteCode, password }) => {
return await API.post({
url: "/api/global/users/invite/accept",
body: {