From 58994a5174e58011f54399d885fe574fc7e56661 Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Thu, 23 Feb 2023 15:04:57 -0600 Subject: [PATCH] fix bug with getting tip address --- README.md | 15 +++++++++++++++ src/components/note/note-zap-button.tsx | 2 +- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 045d90dd6..ddad8ee59 100644 --- a/README.md +++ b/README.md @@ -81,11 +81,26 @@ I would recomend you use a browser extension like [Alby](https://getalby.com/) o - add `client` tag to published events - Save note drafts and let users manage them - make app a valid web share target https://developer.chrome.com/articles/web-share-target/ + - handle `nostr:` links + - handle image share - implement NIP-56 and blocking - block notes based on content - allow user to select relay or following list when fetching replies (default to my relays + following?) - massive thread note1dapvuu8fl09yjtg2gyr2h6nypaffl2sq0aj5raz86463qk5kpyzqlxvtc3 +User / Note Tip or Zap modal requirements. + +- Custom user amounts +- add comment (added to either zap request or invoice description) +- default to zapping if lnurlp endpoint supports it +- optional eventId to make zaps target event +- show QR Code button +- handle LNURL / lightning address. +- pay with webln button +- pay with app (open lightning: url) button +- copy invoice button +- return a deffered promise or shared loading state so component can show loading + ## Setup ```bash diff --git a/src/components/note/note-zap-button.tsx b/src/components/note/note-zap-button.tsx index da506ce27..fb25b9e82 100644 --- a/src/components/note/note-zap-button.tsx +++ b/src/components/note/note-zap-button.tsx @@ -36,7 +36,7 @@ export default function NoteZapButton({ note, ...props }: { note: NostrEvent } & const zapAmount = useRef(0); const hasZapped = parsedZaps.some((zapRequest) => zapRequest.request.pubkey === account.pubkey); - const tipAddress = metadata?.lud06 ?? metadata?.lud16; + const tipAddress = metadata?.lud06 || metadata?.lud16; const handleClick = () => { if (!tipAddress) return;