fix: use correct key for signer status, update signer badge icons

This commit is contained in:
enes 2024-08-14 14:31:26 +02:00
parent 4b04bdf39e
commit 3743a30ef6
2 changed files with 3 additions and 2 deletions

View File

@ -5,6 +5,7 @@ import { UserAvatar } from '../UserAvatar'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import {
faCheck,
faEllipsis,
faExclamation,
faEye,
faHourglass,
@ -35,7 +36,7 @@ export const DisplaySigner = ({
</Spinner>
)
case SignStatus.Pending:
return <FontAwesomeIcon icon={faHourglass} />
return <FontAwesomeIcon icon={faEllipsis} />
case SignStatus.Invalid:
return <FontAwesomeIcon icon={faExclamation} />
case SignStatus.Viewer:

View File

@ -112,7 +112,7 @@ export const UsersDetails = ({
>
<TooltipChild>
<DisplaySigner
status={signersStatus[pubkey as `npub1${string}`]}
status={signersStatus[signer]}
profile={profile}
pubkey={pubkey}
/>