feat: enable self-zapping with friendly warning message (#645)
Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
This commit is contained in:
parent
ce87cd88a0
commit
bc3396fed2
18 changed files with 24 additions and 1 deletions
|
|
@ -35,7 +35,6 @@ 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