@@ -6,7 +6,6 @@ import SelectionList from '@components/SelectionList';
66import RadioListItem from '@components/SelectionList/ListItem/RadioListItem' ;
77import useDebouncedState from '@hooks/useDebouncedState' ;
88import useLocalize from '@hooks/useLocalize' ;
9- import useMappedPersonalDetails , { personalDetailMapper } from '@hooks/useMappedPersonalDetails' ;
109import useOnyx from '@hooks/useOnyx' ;
1110import useReportAttributes from '@hooks/useReportAttributes' ;
1211import useReportIsArchived from '@hooks/useReportIsArchived' ;
@@ -20,7 +19,7 @@ import SidebarUtils from '@libs/SidebarUtils';
2019import CONST from '@src/CONST' ;
2120import ONYXKEYS from '@src/ONYXKEYS' ;
2221import ROUTES from '@src/ROUTES' ;
23- import type { OnyxInputOrEntry , PersonalDetailsList , ReportAction , ReportActions } from '@src/types/onyx' ;
22+ import type { ReportAction , ReportActions } from '@src/types/onyx' ;
2423
2524type DebugReportActionsProps = {
2625 reportID : string ;
@@ -36,7 +35,7 @@ function DebugReportActions({reportID}: DebugReportActionsProps) {
3635 const [ invoiceReceiverPolicy ] = useOnyx ( `${ ONYXKEYS . COLLECTION . POLICY } ${ invoiceReceiverPolicyID } ` ) ;
3736 const isReportArchived = useReportIsArchived ( reportID ) ;
3837 const ifUserCanPerformWriteAction = canUserPerformWriteAction ( report , isReportArchived ) ;
39- const [ personalDetails ] = useMappedPersonalDetails ( personalDetailMapper ) ;
38+ const [ personalDetails ] = useOnyx ( ONYXKEYS . PERSONAL_DETAILS_LIST ) ;
4039 const [ conciergeReportID ] = useOnyx ( ONYXKEYS . CONCIERGE_REPORT_ID ) ;
4140 const reportAttributes = useReportAttributes ( ) ;
4241
@@ -56,7 +55,7 @@ function DebugReportActions({reportID}: DebugReportActionsProps) {
5655 [ getSortedAllReportActionsSelector ] ,
5756 ) ;
5857 const participantAccountIDs = getParticipantsAccountIDsForDisplay ( report , undefined , undefined , true ) ;
59- const participantPersonalDetailList = Object . values ( getPersonalDetailsForAccountIDs ( participantAccountIDs , personalDetails as OnyxInputOrEntry < PersonalDetailsList > ) ) ;
58+ const participantPersonalDetailList = Object . values ( getPersonalDetailsForAccountIDs ( participantAccountIDs , personalDetails ) ) ;
6059
6160 const getReportActionDebugText = useCallback (
6261 ( reportAction : ReportAction ) => {
0 commit comments