null check on lastSync
This commit is contained in:
parent
88b2d1270a
commit
e3bc6443dd
|
@ -65,7 +65,7 @@ function initSyncService() {
|
||||||
|
|
||||||
self.apiService.getAccountRevisionDate(function (response) {
|
self.apiService.getAccountRevisionDate(function (response) {
|
||||||
var accountRevisionDate = new Date(response);
|
var accountRevisionDate = new Date(response);
|
||||||
if (accountRevisionDate <= lastSync) {
|
if (lastSync && accountRevisionDate <= lastSync) {
|
||||||
callback(false);
|
callback(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue