Skip to content

Commit

Permalink
pass captured image data as argument to callback function passed as p…
Browse files Browse the repository at this point in the history
…rop to Capture component
  • Loading branch information
rohitsharma120582 committed Apr 4, 2024
1 parent 1f98fab commit 3a5a0cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/camera/src/components/Capture/capture.js
Original file line number Diff line number Diff line change
Expand Up @@ -450,8 +450,8 @@ const Capture = forwardRef(({
}
}, []);

const handlePictureTaken = useCallback(() => {
onPictureTaken();
const handlePictureTaken = useCallback((e) => {
onPictureTaken(e);
if (sightBeforeRetake) {
sights.dispatch({
type: Actions.sights.SET_CURRENT_SIGHT,
Expand Down

0 comments on commit 3a5a0cd

Please sign in to comment.