diff --git a/inc/myco_objects.js b/inc/myco_objects.js index e00a998..9e6206f 100644 --- a/inc/myco_objects.js +++ b/inc/myco_objects.js @@ -354,7 +354,7 @@ function SyncServer() { function(data, textStatus) { console.log(data); if (textStatus=='success') { - if(jQuery.type(data.email) && jQuery.type(data.name)) { + if(jQuery.type(data.email) != 'undefined' && jQuery.type(data.name) != 'undefined') { console.log('Login success return'); console.log(onsuccess); onsuccess(data);