Skip to content

Commit

Permalink
pass captured image info as an argument to callback function passed a…
Browse files Browse the repository at this point in the history
…s a prop to Capture component
  • Loading branch information
rohitsharma120582 committed Apr 4, 2024
1 parent 9b0be8f commit 9d0f67f
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 @@ -451,8 +451,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 9d0f67f

Please sign in to comment.