fix: options can be undefined

This commit is contained in:
Franck Royer 2022-06-16 14:56:37 +10:00
parent 7ea98c1af0
commit 5ca3957b39
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ export class WakuRelay extends Gossipsub {
) { ) {
super( super(
libp2p, libp2p,
Object.assign(options, { Object.assign(options ?? {}, {
// Ensure that no signature is included nor expected in the messages. // Ensure that no signature is included nor expected in the messages.
globalSignaturePolicy: SignaturePolicy.StrictNoSign, globalSignaturePolicy: SignaturePolicy.StrictNoSign,
}) })