bug: mention key

This commit is contained in:
Kieran 2023-02-18 23:36:34 +00:00
parent 4a7d90c656
commit 42f2998343
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ export default function Text({ content, tags, creator, users }: TextProps) {
if (ref) {
switch (ref.Key) {
case "p": {
return <Mention key={ref.PubKey} pubkey={ref.PubKey ?? ""} />;
return <Mention key={`ref-${ref.PubKey}-${idx}`} pubkey={ref.PubKey ?? ""} />;
}
case "e": {
const eText = hexToBech32("note", ref.Event).substring(0, 12);