mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-30 00:41:12 +00:00
Coerce amount to string in zap tag
This commit is contained in:
parent
17afc35d1c
commit
1e0b032d03
@ -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
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user