Correct undifined error

This commit is contained in:
Unknown 2018-02-14 21:51:21 +01:00
parent b07fd7f204
commit 9dd946750d

View File

@ -68,7 +68,7 @@ function disconnected() {
nav_bar_account_link.html(disconnected_link);
var modalConnection = $('#modal_connection');
modalConnection.modal();
if(needLogin !== undefined){
if (typeof needLogin !== 'undefined'){
modalConnection.modal('open');
}