@@ -43,14 +43,10 @@ export default function useMailer(emails) {
43 const _sendMail = useCallback(async (email, ticket, rawTx) => {
43 const _sendMail = useCallback(async (email, ticket, rawTx) => {
44 if (STUB_MAILER) {
44 if (STUB_MAILER) {
45 console.log(`${email} - ${ticket}`);
45 console.log(`${email} - ${ticket}`);
46− return;
46+ return true;
49− const mailSuccess = await sendMail(email, ticket, rawTx);
49+ return await sendMail(email, ticket, rawTx);
52− throw new Error(`Internal mailing error when mailing ${email}`);
56 return { ...hasReceivedCache, sendMail: _sendMail };
52 return { ...hasReceivedCache, sendMail: _sendMail };