From 5fa6c21b508eeeedb8ab8026a56de23dbc356aa1 Mon Sep 17 00:00:00 2001 From: Lauren Davidson <32903719+1aurend@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:30:04 -0800 Subject: [PATCH] [E] Include anon RG when public annotation disabled --- client/src/hoc/withReadingGroups/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/hoc/withReadingGroups/index.js b/client/src/hoc/withReadingGroups/index.js index 3981130cca..65dd4d144b 100644 --- a/client/src/hoc/withReadingGroups/index.js +++ b/client/src/hoc/withReadingGroups/index.js @@ -113,7 +113,9 @@ export default function withReadingGroups(WrappedComponent) { if (!this.props.readingGroups) return []; if (this.canEngagePublicly) return this.props.readingGroups; return this.props.readingGroups.filter( - rg => rg.attributes.privacy === "private" + rg => + rg.attributes.privacy === "private" || + rg.attributes.privacy === "anonymous" ); }