From ee65dd73ab9c4ca70bf3582d4f22850c4cf4323f Mon Sep 17 00:00:00 2001 From: Kieran Date: Tue, 10 Jan 2023 11:20:51 +0000 Subject: [PATCH] Expect null from `hexToBech32` --- src/element/Note.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/element/Note.js b/src/element/Note.js index 24450386..085fe74b 100644 --- a/src/element/Note.js +++ b/src/element/Note.js @@ -64,7 +64,7 @@ export default function Note(props) { let pubMentions = mentions.length > maxMentions ? `${mentions?.slice(0, maxMentions).join(", ")} & ${mentions.length - maxMentions} others` : mentions?.join(", "); return (
- ➡️ {(pubMentions?.length ?? 0) > 0 ? pubMentions : hexToBech32("note", replyId).substring(0, 12)} + ➡️ {(pubMentions?.length ?? 0) > 0 ? pubMentions : hexToBech32("note", replyId)?.substring(0, 12)}
) }