chore: improve zapper validation

This commit is contained in:
2023-03-05 16:58:34 +00:00
parent d959a492b1
commit c702d1b760
8 changed files with 89 additions and 79 deletions

View File

@ -98,7 +98,7 @@ const Reactions = ({ show, setShow, positive, negative, reposts, zaps }: Reactio
{tab.value === 1 &&
zaps.map(z => {
return (
z.zapper && (
z.sender && (
<div key={z.id} className="reactions-item">
<div className="zap-reaction-icon">
<Icon name="zap" size={20} />
@ -106,7 +106,7 @@ const Reactions = ({ show, setShow, positive, negative, reposts, zaps }: Reactio
</div>
<ProfileImage
autoWidth={false}
pubkey={z.anonZap ? "" : z.zapper}
pubkey={z.anonZap ? "" : z.sender}
subHeader={
<div className="f-ellipsis zap-comment" title={z.content}>
{z.content}