@@ -189,21 +189,21 @@ export default function InviteEmail() {
190 //TODO want to do this on-input, but that gets weird. see #188
190 //TODO want to do this on-input, but that gets weird. see #188
191 let errorCount = 0;
191 let errorCount = 0;
192− const mailsVerified = inputs.map(async input => {
193+ inputs.map(async input => {
193− console.log('aaa', invites);
194− const email = input.data;
194+ const email = input.data;
195− const hasReceived = getHasReceived(email).matchWith({
195+ const hasReceived = getHasReceived(email).matchWith({
196− Nothing: () => false, // loading
196+ Nothing: () => false, // loading
197− Just: p => p.value,
197+ Just: p => p.value,
202− [input.name]: `${email} has already received an invite.`,
202+ [input.name]: `${email} has already received an invite.`,
206− await Promise.all(mailsVerified);
207 if (errorCount > 0) {
207 if (errorCount > 0) {
208 throw new Error(`Some of these already have a point!`);
208 throw new Error(`Some of these already have a point!`);