Fixed typo that broke sending invites to an address

This commit is contained in:
Harvey Tindall 2020-05-21 22:10:52 +01:00
parent a65f193407
commit 61368c4505

View File

@ -170,7 +170,7 @@ $("form#inviteForm").submit(function() {
'<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" style="margin-right: 0.5rem;"></span>' + '<span class="spinner-border spinner-border-sm" role="status" aria-hidden="true" style="margin-right: 0.5rem;"></span>' +
'Loading...'; 'Loading...';
var send_object = $("form#inviteForm").serializeObject(); var send_object = $("form#inviteForm").serializeObject();
if (document.getElementById('sent_to_address') != null) { if (document.getElementById('send_to_address') != null) {
if (document.getElementById('send_to_address_enabled').checked) { if (document.getElementById('send_to_address_enabled').checked) {
send_object['email'] = document.getElementById('send_to_address').value; send_object['email'] = document.getElementById('send_to_address').value;
} }