Coerce amount to string in zap tag

This commit is contained in:
Jonathan Staab 2023-03-03 06:48:31 -06:00
parent 17afc35d1c
commit 1e0b032d03
2 changed files with 7 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# Current
- [ ] Hash pubkey so we can track usage by unique user
- [ ] Try adding boxes/separation on feeds based on user feedback
- [ ] Strip zero width spaces from compose
- [ ] Fix iOS/safari/firefox

View File

@ -94,7 +94,12 @@ const createReply = (note, content, mentions = [], topics = []) => {
}
const requestZap = (relays, content, pubkey, eventId, amount, lnurl) => {
const tags = [["relays", ...relays], ["amount", amount], ["lnurl", lnurl], ["p", pubkey]]
const tags = [
["relays", ...relays],
["amount", amount.toString()],
["lnurl", lnurl],
["p", pubkey],
]
if (eventId) {
tags.push(["e", eventId])