Skip to content

Commit

Permalink
Trim Zap comment (#446)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
benthecarman authored Nov 15, 2023
1 parent 55d5cc2 commit 73eadc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/components/modal/Zap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 73eadc4

Please sign in to comment.