From 5ca3957b39ff791b7c02d5c5e685a49ec7e8f62e Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Thu, 16 Jun 2022 14:56:37 +1000 Subject: [PATCH] fix: options can be undefined --- src/lib/waku_relay/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/waku_relay/index.ts b/src/lib/waku_relay/index.ts index 1c52277cf5..1011088903 100644 --- a/src/lib/waku_relay/index.ts +++ b/src/lib/waku_relay/index.ts @@ -78,7 +78,7 @@ export class WakuRelay extends Gossipsub { ) { super( libp2p, - Object.assign(options, { + Object.assign(options ?? {}, { // Ensure that no signature is included nor expected in the messages. globalSignaturePolicy: SignaturePolicy.StrictNoSign, })