diff --git a/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx b/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx index eca0237eea02..672dbbb91069 100644 --- a/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx +++ b/src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx @@ -27,7 +27,7 @@ import EXIT_SURVEY_REASON_INPUT_IDS from '@src/types/form/ExitSurveyReasonForm'; import ExitSurveyOffline from './ExitSurveyOffline'; type ExitSurveyConfirmPageOnyxProps = { - exitReason?: ExitReason; + exitReason?: ExitReason | null; isLoading: OnyxEntry; }; @@ -106,7 +106,7 @@ ExitSurveyConfirmPage.displayName = 'ExitSurveyConfirmPage'; export default withOnyx({ exitReason: { key: ONYXKEYS.FORMS.EXIT_SURVEY_REASON_FORM, - selector: (value: OnyxEntry) => value?.[EXIT_SURVEY_REASON_INPUT_IDS.REASON], + selector: (value: OnyxEntry) => value?.[EXIT_SURVEY_REASON_INPUT_IDS.REASON] ?? null, }, isLoading: { key: ONYXKEYS.IS_SWITCHING_TO_OLD_DOT,