File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
packages/inspection-capture-web/src/PhotoCapture/hooks Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 1- import { LoadingState , useObjectMemo , usePreventExit } from '@monkvision/common' ;
1+ import { LoadingState , useObjectMemo } from '@monkvision/common' ;
22import { useCallback , useEffect } from 'react' ;
33import { useAnalytics } from '@monkvision/analytics' ;
44import { useMonitoring } from '@monkvision/monitoring' ;
@@ -51,7 +51,6 @@ export function useInspectionComplete({
5151} : InspectionCompleteParams ) : InspectionCompleteHandle {
5252 const analytics = useAnalytics ( ) ;
5353 const monitoring = useMonitoring ( ) ;
54- const { allowRedirect } = usePreventExit ( sightState . sightsTaken . length !== 0 ) ;
5554
5655 const handleInspectionCompleted = useCallback ( ( ) => {
5756 startTasks ( )
@@ -61,7 +60,6 @@ export function useInspectionComplete({
6160 captureCompleted : true ,
6261 sightSelected : 'inspection-completed' ,
6362 } ) ;
64- allowRedirect ( ) ;
6563 onComplete ?.( ) ;
6664 sightState . setIsInspectionCompleted ( true ) ;
6765 } )
You can’t perform that action at this time.
0 commit comments