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:
authored and GitHub committed 2026-11-26 05:58:44 +00:00
1 parent 66e27e60de
commit 80c130c4c0
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,