Skip to content

Commit

Permalink
Fix exit survey page displays blank
Browse files Browse the repository at this point in the history
  • Loading branch information
nkdengineer committed Mar 29, 2024
1 parent 5a8cb7f commit c2cbb53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/settings/ExitSurvey/ExitSurveyConfirmPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>;
};

Expand Down Expand Up @@ -106,7 +106,7 @@ ExitSurveyConfirmPage.displayName = 'ExitSurveyConfirmPage';
export default withOnyx<ExitSurveyConfirmPageProps, ExitSurveyConfirmPageOnyxProps>({
exitReason: {
key: ONYXKEYS.FORMS.EXIT_SURVEY_REASON_FORM,
selector: (value: OnyxEntry<ExitSurveyReasonForm>) => value?.[EXIT_SURVEY_REASON_INPUT_IDS.REASON],
selector: (value: OnyxEntry<ExitSurveyReasonForm>) => value?.[EXIT_SURVEY_REASON_INPUT_IDS.REASON] ?? null,
},
isLoading: {
key: ONYXKEYS.IS_SWITCHING_TO_OLD_DOT,
Expand Down

0 comments on commit c2cbb53

Please sign in to comment.