fix: add keys and show name for counterparts
All checks were successful
Open PR on Staging / audit_and_check (pull_request) Successful in 34s

This commit is contained in:
enes 2024-09-13 18:20:10 +02:00
parent e1c750495e
commit 8267eb624b
2 changed files with 11 additions and 3 deletions

View File

@ -72,7 +72,11 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => {
{signers.map((signer) => {
const pubkey = npubToHex(signer)!
return (
<DisplaySigner status={signersStatus[signer]} pubkey={pubkey} />
<DisplaySigner
key={pubkey}
status={signersStatus[signer]}
pubkey={pubkey}
/>
)
})}
</UserAvatarGroup>
@ -87,7 +91,11 @@ export const UsersDetails = ({ meta }: UsersDetailsProps) => {
const pubkey = npubToHex(signer)!
return (
<DisplaySigner status={SignStatus.Viewer} pubkey={pubkey} />
<DisplaySigner
key={pubkey}
status={SignStatus.Viewer}
pubkey={pubkey}
/>
)
})}
</UserAvatarGroup>

View File

@ -1179,7 +1179,7 @@ const Counterpart = ({
return (
<>
<div className={styles.avatar}>
<UserAvatar pubkey={user.pubkey} />
<UserAvatar pubkey={user.pubkey} isNameVisible={true} />
</div>
<Tooltip title="Toggle User Role" arrow disableInteractive>
<Button