diff --git a/www/common/outer/async-store.js b/www/common/outer/async-store.js index e1a089144..bc4d08267 100644 --- a/www/common/outer/async-store.js +++ b/www/common/outer/async-store.js @@ -327,15 +327,6 @@ define([ account.note = obj.note; cb(obj); }); - - arePinsSynced(function (err, yes) { - if (!yes) { - resetPins(function (err) { - if (err) { return console.error(err); } - console.log('RESET DONE'); - }); - } - }); }); }); }; @@ -1666,6 +1657,15 @@ define([ loadUniversal(Profile, 'profile', waitFor); cleanFriendRequests(); }).nThen(function () { + arePinsSynced(function (err, yes) { + if (!yes) { + resetPins(function (err) { + if (err) { return console.error(err); } + console.log('RESET DONE'); + }); + } + }); + var requestLogin = function () { broadcast([], "REQUEST_LOGIN"); };