diff --git a/src/plugins/memberListActivities/index.tsx b/src/plugins/memberListActivities/index.tsx index 88bdb2dc5..ef6facfe2 100644 --- a/src/plugins/memberListActivities/index.tsx +++ b/src/plugins/memberListActivities/index.tsx @@ -178,9 +178,15 @@ export default definePlugin({ }); if (icons.length) { + const compareJSXElementsSource = (a: JSX.Element, b: JSX.Element) => { + return a.props?.src === b.props?.src; + }; + const uniqueIcons = icons.filter((element, index, array) => { + return array.findIndex(el => compareJSXElementsSource(el, element)) === index; + }); return
- {icons.map((icon, i) => ( + {uniqueIcons.map((icon, i) => (
{icon}