feat: enable self-zapping with friendly warning message (#645)

Co-authored-by: The Daniel <dmnyc@users.noreply.github.com>
This commit is contained in:
The Daniel ⚡️ 2025-11-06 20:47:11 -05:00 committed by GitHub
parent ce87cd88a0
commit bc3396fed2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 24 additions and 1 deletions

View file

@ -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)
})