@@ -497,7 +497,6 @@ const ModernizationPage = () => {
497497 const [ fileId , setFileId ] = React . useState < string > ( "" ) ;
498498 const [ expandedSections , setExpandedSections ] = React . useState < string [ ] > ( [ ] ) ;
499499 const [ allFilesCompleted , setAllFilesCompleted ] = useState ( false ) ;
500- const [ progressPercentage , setProgressPercentage ] = useState ( 0 ) ;
501500 const [ isZipButtonDisabled , setIsZipButtonDisabled ] = useState ( true ) ;
502501 const [ fileLoading , setFileLoading ] = useState ( false ) ;
503502 const [ lastActivityTime , setLastActivityTime ] = useState < number > ( Date . now ( ) ) ;
@@ -1014,16 +1013,16 @@ useEffect(() => {
10141013 } ;
10151014 } , [ handleWebSocketMessage ] ) ;
10161015
1017- // Set a timeout for initial loading - if no progress after 30 seconds, show error
1016+ // Set a timeout for initial loading - if still loading after 30 seconds, show a warning message
10181017 useEffect ( ( ) => {
10191018 const loadingTimeout = setTimeout ( ( ) => {
1020- if ( progressPercentage < 5 && showLoading ) {
1019+ if ( showLoading ) {
10211020 setLoadingError ( 'Processing is taking longer than expected. You can continue waiting or try again later.' ) ;
10221021 }
10231022 } , 30000 ) ;
10241023
10251024 return ( ) => clearTimeout ( loadingTimeout ) ;
1026- } , [ progressPercentage , showLoading ] ) ;
1025+ } , [ showLoading ] ) ;
10271026
10281027 // Add timeout mechanism to navigate if no activity for 30 seconds
10291028 useEffect ( ( ) => {
0 commit comments