diff --git a/src/app/core/commands.ts b/src/app/core/commands.ts index 1400a11c..e9c712c6 100644 --- a/src/app/core/commands.ts +++ b/src/app/core/commands.ts @@ -769,7 +769,7 @@ export const addSpaceMembers = async ( const results = await Promise.all( pubkeys - .filter(pubkey => spaceMembers && !spaceMembers.includes(pubkey)) + .filter(pubkey => !spaceMembers || !spaceMembers.includes(pubkey)) .map(pubkey => manageRelay(url, { method: ManagementMethod.AllowPubkey,