Skip to content

Commit

Permalink
fix create group error (#6737)
Browse files Browse the repository at this point in the history
  • Loading branch information
julianjelfs authored Nov 6, 2024
1 parent 202fbfa commit 45e51b8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/app/src/components/home/addgroup/NewGroup.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -284,17 +284,18 @@
});
step = "details";
} else if (!hideInviteUsers) {
onGroupCreated(resp.canisterId);
optionallyInviteUsers(resp.canisterId).catch((_err) => {
toastStore.showFailureToast(i18nKey("inviteUsersFailed"));
step = "details";
});
onGroupCreated(resp.canisterId);
} else {
onGroupCreated(resp.canisterId);
}
})
.catch((_err) => {
.catch((err) => {
toastStore.showFailureToast(i18nKey("groupCreationFailed"));
console.error("Error creating group: ", err);
step = "details";
})
.finally(() => (busy = false));
Expand Down

0 comments on commit 45e51b8

Please sign in to comment.