diff --git a/CHANGELOG.md b/CHANGELOG.md index bfd08202..d168f37d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,7 +20,7 @@ changes. ### Changed -- +- Make displaying own DRep in DRep directory available [Issue 1934](https://github.com/IntersectMBO/govtool/issues/1934) ### Removed diff --git a/govtool/frontend/src/pages/DRepDirectoryContent.tsx b/govtool/frontend/src/pages/DRepDirectoryContent.tsx index 8fe12aae..98b5aa41 100644 --- a/govtool/frontend/src/pages/DRepDirectoryContent.tsx +++ b/govtool/frontend/src/pages/DRepDirectoryContent.tsx @@ -208,27 +208,19 @@ export const DRepDirectoryContent: FC = ({ }} > {dRepList?.length === 0 && } - {dRepListToDisplay?.map((dRep) => { - if ( - isSameDRep(dRep, myDrep?.view) || - isSameDRep(dRep, inProgressDelegation) - ) { - return null; - } - return ( - - delegate(dRep.drepId)} - /> - - ); - })} + {dRepListToDisplay?.map((dRep) => ( + + delegate(dRep.drepId)} + /> + + ))} {dRepListHasNextPage && dRepList.length >= 10 && (