} else if (syncStatus['last_failed_sync_tasks'].length > 0) {
                    activeOrFailedTask = pickLastTask(syncStatus['last_failed_sync_tasks']);
                    $scope.syncTask = activeOrFailedTask;
                    errorCount = $scope.syncTask.humanized.errors.length;