This commit suggests that if there is no name then the username will… (#2700)

* This commit suggests that if there is no name then the username will come in place of a name

* Unnecessary comments has been removed also,revert changes in package-lock.json

* Remove White Spaces

* File has been restored to its original version .

* Followed some checks description to improve code
This commit is contained in:
Mohammad Yasir
2023-02-20 20:49:27 +05:30
committed by GitHub
parent e949e9b841
commit 87cdbebcc5

View File

@@ -22,7 +22,7 @@ export const SingleFollower: FC<SingleFollowerProps> = ({ follower }) => (
</Col>
<Col span={18}>
<Row className={styles.name}>
<Typography.Text ellipsis>{follower.name}</Typography.Text>
<Typography.Text ellipsis>{follower.name || follower.username}</Typography.Text>
</Row>
<Row className={styles.account}>
<Typography.Text ellipsis>{follower.username}</Typography.Text>