@@ -43,14 +43,10 @@ export default function useMailer(emails) {
4343 const _sendMail = useCallback(async (email, ticket, rawTx) => {
4444 if (STUB_MAILER) {
4545 console.log(`${email} - ${ticket}`);
46− return;
46+ return true;
4747 }
4848
49− const mailSuccess = await sendMail(email, ticket, rawTx);
50−
51− if (!mailSuccess) {
52− throw new Error(`Internal mailing error when mailing ${email}`);
53− }
49+ return await sendMail(email, ticket, rawTx);
5450 }, []);
5551
5652 return { ...hasReceivedCache, sendMail: _sendMail };