mirror of
https://github.com/irislib/iris-messenger.git
synced 2024-09-29 22:30:43 +00:00
Trim Zap comment (#446)
We had a bug when trying to parse the json of a comment. It had a `\n` at the end of it and our json parser couldn't handle it. This should fix
This commit is contained in:
parent
55d5cc2c6a
commit
73eadc4b8d
@ -165,7 +165,7 @@ export default function SendSats(props: ZapProps) {
|
||||
created_at: Math.floor(Date.now() / 1000),
|
||||
kind: 9734,
|
||||
pubkey: Key.getPubKey(),
|
||||
content: comment || '',
|
||||
content: comment?.trim() || '',
|
||||
tags: [
|
||||
['e', note],
|
||||
['p', recipient],
|
||||
|
Loading…
Reference in New Issue
Block a user