Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Dedupe name list

Gabe Kangasb7552d9bc19d
diff --git a/web/components/user-popover.tsx b/web/components/user-popover.tsx
index 6feeea94b4..63056711d6 100644
--- a/web/components/user-popover.tsx
+++ b/web/components/user-popover.tsx
@@ -5,6 +5,8 @@ import { Divider, Modal, Tooltip, Typography, Row, Col } from 'antd';
import formatDistanceToNow from 'date-fns/formatDistanceToNow';
import format from 'date-fns/format';
import { ReactNode } from 'react-markdown';
+import { uniq } from 'lodash';
+
import BlockUserbutton from './ban-user-button';
import { User, UserConnectionInfo } from '../types/chat';
@@ -104,7 +106,7 @@ export default function UserPopover({ user, connectionInfo, children }: UserPopo
<Col md={connectionInfo ? 12 : 24}>
<Typography.Title level={5}>This user is also seen as:</Typography.Title>
<ul className="previous-names-list">
- {nameList.map((name, index) => (
+ {uniq(nameList).map((name, index) => (
<li className={index === 0 ? 'latest' : ''}>
<span className="user-name-item">{name}</span>
{index === 0 ? ` (Changed ${lastNameChangeDuration} ago)` : ''}