From b2d39f23d89130a7e1a92f7295c81d8d030cff68 Mon Sep 17 00:00:00 2001 From: Taras Lytvynenko <69678257+Inferato@users.noreply.github.com> Date: Thu, 9 Nov 2023 14:48:21 +0200 Subject: [PATCH] fix: [RGOeX-26199] Check if more than 1 course mode --- .../BulkEmailRecipient.jsx | 30 +++++++++++-------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/src/components/bulk-email-tool/bulk-email-form/bulk-email-recipient/BulkEmailRecipient.jsx b/src/components/bulk-email-tool/bulk-email-form/bulk-email-recipient/BulkEmailRecipient.jsx index 2bafefc9..dc75a34e 100644 --- a/src/components/bulk-email-tool/bulk-email-form/bulk-email-recipient/BulkEmailRecipient.jsx +++ b/src/components/bulk-email-tool/bulk-email-form/bulk-email-recipient/BulkEmailRecipient.jsx @@ -50,18 +50,24 @@ export default function BulkEmailRecipient(props) { description="A selectable choice from a list of potential email recipients" /> - group === DEFAULT_GROUPS.ALL_LEARNERS)} - className="col col-lg-4 col-sm-6 col-12" - > - - + { + // additional modes + courseModes + && courseModes.length > 1 + && courseModes.map((courseMode) => ( + group === DEFAULT_GROUPS.ALL_LEARNERS)} + className="col col-lg-4 col-sm-6 col-12" + > + + + )) + } { // additional cohorts additionalCohorts