1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-28 12:45:45 +01:00

null check on lastSync

This commit is contained in:
Kyle Spearrin 2017-02-07 21:45:29 -05:00
parent 88b2d1270a
commit e3bc6443dd

View File

@ -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;
} }