Skip to content

Commit cc59c28

Browse files
Fixed the onFinishUploadPicture callback not being called with the proper params (#777)
1 parent 32d4c07 commit cc59c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/camera/src/components/Capture/capture.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -354,14 +354,14 @@ const Capture = forwardRef(({
354354
}
355355
}, [setAddDamageStatus, lastAddDamageHelpTimestamp]);
356356

357-
const handleOnFinishUploadPicture = useCallback(async () => {
357+
const handleOnFinishUploadPicture = useCallback(async (state, a) => {
358358
try {
359359
await onNavigateToNextSight();
360360
} catch (err) {
361361
log([`Error in \`<Capture />\` \`goNextSight()\`: ${err}`], 'err');
362362
} finally {
363363
api.goNextSight();
364-
onFinishUploadPicture();
364+
onFinishUploadPicture(state, a);
365365
}
366366
}, [api]);
367367

0 commit comments

Comments
 (0)