only update last sync when success

This commit is contained in:
Kyle Spearrin 2017-11-24 11:40:02 -05:00
parent 15a618596b
commit 95022337ea
1 changed files with 1 additions and 1 deletions

View File

@ -11,8 +11,8 @@ angular
$scope.loading = true;
syncService.fullSync(true).then(function (success) {
$scope.loading = false;
setLastSync();
if (success) {
setLastSync();
$analytics.eventTrack('Synced Full');
toastr.success(i18nService.syncingComplete);
}