From e3bc6443ddb90e74a67a0cf57599b219b00f4874 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 7 Feb 2017 21:45:29 -0500 Subject: [PATCH] null check on lastSync --- src/services/syncService.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/syncService.js b/src/services/syncService.js index bec3902207..188cae27bb 100644 --- a/src/services/syncService.js +++ b/src/services/syncService.js @@ -65,7 +65,7 @@ function initSyncService() { self.apiService.getAccountRevisionDate(function (response) { var accountRevisionDate = new Date(response); - if (accountRevisionDate <= lastSync) { + if (lastSync && accountRevisionDate <= lastSync) { callback(false); return; }