This commit is contained in:
ennmichael
2023-04-01 14:47:37 +02:00
parent cd0aeb46f7
commit 4c6b7edecf
2 changed files with 73 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export function getEvents(this: Deletion): EventId[] {
return this.tags
.filter((tag) => tag[0] === "e")
.map((tag) => {
if (tag[1] !== undefined) {
if (tag[1] === undefined) {
throw new NostrError(
`invalid deletion event tag: ${JSON.stringify(tag)}`
)