diff --git a/packages/system/src/nostr-system.ts b/packages/system/src/nostr-system.ts index 46408948..d332174d 100644 --- a/packages/system/src/nostr-system.ts +++ b/packages/system/src/nostr-system.ts @@ -287,7 +287,7 @@ export class NostrSystem extends EventEmitter implements Syst for (const list of this.userFollowsCache.snapshot()) { const user = ID(list.pubkey); for (const fx of list.follows) { - if (fx[0] === "p" && fx[1].length === 64) { + if (fx[0] === "p" && fx[1]?.length === 64) { socialGraphInstance.addFollower(ID(fx[1]), user); } }