@@ -10,6 +10,7 @@ import useResponsiveLayout from '@hooks/useResponsiveLayout';
1010import { getDomainOrWorkspaceAccountID } from '@libs/CardUtils' ;
1111import type { PlatformStackScreenProps } from '@libs/Navigation/PlatformStackNavigation/types' ;
1212import type { WorkspaceSplitNavigatorParamList } from '@libs/Navigation/types' ;
13+ import { getMemberAccountIDsForWorkspace } from '@libs/PolicyUtils' ;
1314import AccessOrNotFoundWrapper from '@pages/workspace/AccessOrNotFoundWrapper' ;
1415import WorkspacePageWithSections from '@pages/workspace/WorkspacePageWithSections' ;
1516import { openPolicyCompanyCardsFeed , openPolicyCompanyCardsPage } from '@userActions/CompanyCards' ;
@@ -43,8 +44,9 @@ function WorkspaceCompanyCardsPage({route}: WorkspaceCompanyCardsPageProps) {
4344 const domainOrWorkspaceAccountID = getDomainOrWorkspaceAccountID ( workspaceAccountID , selectedFeed ) ;
4445
4546 const loadPolicyCompanyCardsPage = useCallback ( ( ) => {
46- openPolicyCompanyCardsPage ( policyID , domainOrWorkspaceAccountID , translate ) ;
47- } , [ domainOrWorkspaceAccountID , policyID , translate ] ) ;
47+ const emailList = Object . keys ( getMemberAccountIDsForWorkspace ( policy ?. employeeList ) ) ;
48+ openPolicyCompanyCardsPage ( policyID , domainOrWorkspaceAccountID , emailList , translate ) ;
49+ } , [ domainOrWorkspaceAccountID , policyID , policy ?. employeeList , translate ] ) ;
4850
4951 const { isOffline} = useNetwork ( {
5052 onReconnect : loadPolicyCompanyCardsPage ,
0 commit comments