Add robust fallback logic for Step 3 data passing

- Check multiple storage sources for website URL (props, localStorage, sessionStorage)
- Add validation to prevent API calls without website URL
- Improve debugging logs to track data flow
- Make CompetitorAnalysisStep more resilient to production edge cases
- No breaking changes, just defensive improvements
This commit is contained in:
ajaysi
2025-10-11 18:08:10 +05:30
parent c506b1da76
commit 5f066b6c0e
2 changed files with 44 additions and 8 deletions

View File

@@ -563,7 +563,7 @@ const Wizard: React.FC<WizardProps> = ({ onComplete }) => {
key="research"
onContinue={handleNext}
onBack={handleBack}
userUrl={stepData?.website || ''}
userUrl={stepData?.website || localStorage.getItem('website_url') || ''}
industryContext={stepData?.industryContext}
onDataReady={handleCompetitorDataReady}
/>,