Skip to content

Commit

Permalink
bugfix. incorrect use of object.length
Browse files Browse the repository at this point in the history
  • Loading branch information
sozkan committed Jan 7, 2018
1 parent 9ac1ae9 commit 2c2b00b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/simple-secure-compose.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function SOC_composeemailform_reset(){
function SOC_composeemailform_submit(){
SOC_log(5, 'SOC_composeemailform_submit', 'Enter');

if(socglobal_composestate.recipients.length<1){
if(Object.keys(socglobal_composestate.recipients).length<1){
SOC_alert('You didn\'t add any recipients. At least one recipient must be selected to send or save as draft.');
return;
}
Expand Down

0 comments on commit 2c2b00b

Please sign in to comment.