Skip to content

Commit

Permalink
[#1153] Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
navins94 committed Feb 12, 2024
1 parent 31f62d7 commit e714eaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/components/SyncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const SyncService = () => {
const onSyncDataPoint = useCallback(async () => {
const activeJob = await crudJobs.getActiveJob(SYNC_DATAPOINT_JOB_NAME);

if (row.status === PENDING && row.attempt < 3) {
if (activeJob.status === PENDING && activeJob.attempt < 3) {
UIState.update((s) => {
s.statusBar = {
type: syncStatus.ON_PROGRESS,
Expand Down Expand Up @@ -133,7 +133,7 @@ const SyncService = () => {
}
}

if (row.status === PENDING && row.attempt === 3) {
if (activeJob.status === PENDING && activeJob.attempt === 3) {
await crudJobs.deleteJob(activeJob.id);
}

Expand Down

0 comments on commit e714eaf

Please sign in to comment.