diff --git a/packages/ui/src/app/pages/WorkingGroups/WorkingGroupsOpening.tsx b/packages/ui/src/app/pages/WorkingGroups/WorkingGroupsOpening.tsx index 0f16c2fb61..f5e49198a6 100644 --- a/packages/ui/src/app/pages/WorkingGroups/WorkingGroupsOpening.tsx +++ b/packages/ui/src/app/pages/WorkingGroups/WorkingGroupsOpening.tsx @@ -52,9 +52,9 @@ export const WorkingGroupOpening = () => { } }, [opening?.applications]) - const hiringApplication = useMemo(() => { + const hiredApplicants = useMemo(() => { if (activeApplications) { - return activeApplications.find(({ status }) => status === 'ApplicationStatusAccepted') + return activeApplications.filter(({ status }) => status === 'ApplicationStatusAccepted') } }, [opening?.id]) const myApplication = useMemo(() => { @@ -161,7 +161,11 @@ export const WorkingGroupOpening = () => { tooltipLinkURL="https://joystream.gitbook.io/testnet-workspace/system/working-groups#staking" value={opening.stake} /> - + @@ -174,9 +178,9 @@ export const WorkingGroupOpening = () => { sidebar={ {opening.status === OpeningStatuses.OPEN && !activeApplications?.length && } diff --git a/packages/ui/src/working-groups/components/ApplicantsList.tsx b/packages/ui/src/working-groups/components/ApplicantsList.tsx index c1b81a0eda..5f3d5c47f9 100644 --- a/packages/ui/src/working-groups/components/ApplicantsList.tsx +++ b/packages/ui/src/working-groups/components/ApplicantsList.tsx @@ -10,7 +10,7 @@ import { Worker } from './Worker' export interface WorkersListProps { myApplication?: WorkingGroupOpeningApplication - hired?: WorkingGroupOpeningApplication + hired?: WorkingGroupOpeningApplication[] allApplicants?: WorkingGroupOpeningApplication[] hiringComplete: boolean } @@ -35,7 +35,9 @@ export const ApplicantsList = ({ hired, allApplicants, myApplication, hiringComp {hired && ( - + {hired.map((application, index) => ( + + ))} )}