fixing error on key duplicates

This commit is contained in:
talksik
2022-05-19 11:33:07 -05:00
parent e14e9c70a8
commit efc63df98f
@@ -109,10 +109,10 @@ export default function LineDetails() {
</span> </span>
</div> </div>
<Avatar.Group className={'animate-pulse'} key={`lineHistoryMessage-yesterday-afternoon}`}> <Avatar.Group className={'animate-pulse'}>
{tunedProfiles.map((otherUser) => ( {tunedProfiles.map((otherUser) => (
<Avatar <Avatar
key={`tunedUser-${otherUser.name}`} key={`lineTunedInUserAvatar-${otherUser.name}`}
src={otherUser.pictureSrc} src={otherUser.pictureSrc}
shape="square" shape="square"
size={'large'} size={'large'}
@@ -123,10 +123,10 @@ export default function LineDetails() {
<span className="px-10 text-gray-200"> | </span> <span className="px-10 text-gray-200"> | </span>
<Avatar.Group key={`lineHistoryMessage-yesterday-afternoon}`}> <Avatar.Group>
{selectedLine.otherUserObjects.map((otherUser) => ( {selectedLine.otherUserObjects.map((otherUser) => (
<Avatar <Avatar
key={`linehistory-${1}`} key={`lineOfflineUserAvatar-${1}`}
src={otherUser.picture} src={otherUser.picture}
shape="square" shape="square"
size={'default'} size={'default'}