From 572b3930e71f000c4504e04a836f78c588fb42c6 Mon Sep 17 00:00:00 2001 From: Sumanth V Rao Date: Wed, 5 Aug 2020 11:13:50 +0530 Subject: [PATCH] invite: Use `email` rather than `values[0]` in invite.js. --- static/js/invite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/invite.js b/static/js/invite.js index 10bd4aba5c..eb1cce60a1 100644 --- a/static/js/invite.js +++ b/static/js/invite.js @@ -80,7 +80,7 @@ function submit_invitation_form() { if (deactivated) { is_invitee_deactivated = true; } - invitee_emails_errored.push(value[0]); + invitee_emails_errored.push(email); }); const error_response = render_invitation_failed_error({