Skip to content

Commit

Permalink
👌🏼 make command simple
Browse files Browse the repository at this point in the history
  • Loading branch information
arunachalam-monk committed Sep 2, 2024
1 parent 0d0eb4d commit 8a96519
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,10 @@ export function usePhotoCaptureSightState({
setLastPictureTakenUri(getLastPictureTakenUri(inspectionId, response));
loading.onSuccess();
setIsInspectionCompleted(
response.entities.tasks
.filter((task) => task.inspectionId === inspectionId)
.find((task) => task.status === ProgressStatus.NOT_STARTED) === undefined,
response.entities.tasks.some(
(task) =>
task.inspectionId === inspectionId && task.status === ProgressStatus.NOT_STARTED,
),
);
} catch (err) {
handleError(err);
Expand Down

0 comments on commit 8a96519

Please sign in to comment.