fix: await signup link before sending invitation email (#8852)
Co-authored-by: Yi-111-a <yi-111-a@example.com> Co-authored-by: Yi-111-a <yi111-a@example.com>
This commit is contained in:
1 file changed
+1
-1
@@ -137,7 +137,7 @@ const { loading, sendTo } = toRefs(state);
|
||||
async function sendInvite() {
|
||||
state.loading = true;
|
||||
if (!token.value) {
|
||||
getSignupLink(selectedGroup.value, selectedHousehold.value);
|
||||
await getSignupLink(selectedGroup.value, selectedHousehold.value);
|
||||
}
|
||||
const { data } = await api.email.sendInvitation({
|
||||
email: state.sendTo,
|
||||
|
||||
Reference in new issue
Block a user