diff --git a/packages/web-app/src/modules/exit-survey-views/components/ExitSurvey.tsx b/packages/web-app/src/modules/exit-survey-views/components/ExitSurvey.tsx index c7cec51d0..30b4f6230 100644 --- a/packages/web-app/src/modules/exit-survey-views/components/ExitSurvey.tsx +++ b/packages/web-app/src/modules/exit-survey-views/components/ExitSurvey.tsx @@ -3,7 +3,7 @@ import { useEffect } from 'react' import type { Profile } from '../../profile/models' interface Props { - currentProfile: Profile + currentProfile?: Profile trackUninstall: () => void } @@ -15,6 +15,6 @@ export const ExitSurvey: FC = ({ currentProfile, trackUninstall }) => { } else { window.location.replace('https://p1atjy4hixj.typeform.com/saladexitsurvey') } - }, [currentProfile.id, trackUninstall]) + }, [currentProfile?.id, trackUninstall]) return null }