diff --git a/packages/app/src/System/EventBuilder.ts b/packages/app/src/System/EventBuilder.ts index f202685e..6c4b9039 100644 --- a/packages/app/src/System/EventBuilder.ts +++ b/packages/app/src/System/EventBuilder.ts @@ -74,10 +74,10 @@ export class EventBuilder { } #validate() { - if (!this.#kind) { + if (this.#kind === undefined) { throw new Error("Kind must be set"); } - if (!this.#pubkey) { + if (this.#pubkey === undefined) { throw new Error("Pubkey must be set"); } }