feat: disable zap button on the user's own notes (#300)
This commit is contained in:
parent
5473c22c3f
commit
b0b07365be
1 changed files with 1 additions and 0 deletions
|
|
@ -35,6 +35,7 @@ export default function ZapButton({ event }: { event: Event }) {
|
|||
useEffect(() => {
|
||||
client.fetchProfile(event.pubkey).then((profile) => {
|
||||
if (!profile) return
|
||||
if (pubkey === profile.pubkey) return
|
||||
const lightningAddress = getLightningAddressFromProfile(profile)
|
||||
if (lightningAddress) setDisable(false)
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue