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:
benthecarman 2023-11-15 03:24:27 -06:00 committed by GitHub
parent 55d5cc2c6a
commit 73eadc4b8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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],