From 475ddf17df6ab6d8bf95eb0da4a486a139e0ed74 Mon Sep 17 00:00:00 2001 From: martincai8 Date: Sun, 5 Jan 2025 00:44:50 -0500 Subject: [PATCH 1/2] remove notices --- pages/portal/[id]/schedule.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pages/portal/[id]/schedule.js b/pages/portal/[id]/schedule.js index 28dbe973..43870c56 100644 --- a/pages/portal/[id]/schedule.js +++ b/pages/portal/[id]/schedule.js @@ -228,9 +228,6 @@ export default ({ hackathons }) => { { label: 'minievents', }, - { - label: 'notices', - }, ]} label="Type" value={newEvent.type} @@ -330,9 +327,6 @@ export default ({ hackathons }) => { { label: 'minievents', }, - { - label: 'notices', - }, ]} label="Type" value={eventEditing.type} From 009b7957171b7a80d478a6e89939edeeb9f7100a Mon Sep 17 00:00:00 2001 From: alvinkam Date: Thu, 9 Jan 2025 01:33:51 -0800 Subject: [PATCH 2/2] update engagementsource and gender to use multiselect helper --- utility/utilities.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utility/utilities.js b/utility/utilities.js index 19dfe7ea..b03404b8 100644 --- a/utility/utilities.js +++ b/utility/utilities.js @@ -123,6 +123,11 @@ export const filterHackerInfoFields = (obj, collection) => { obj.basicInfo?.culturalBackground, obj.basicInfo?.otherCulturalBackground || '' ) + newObj.engagementSource = createStringFromSelection( + obj.questionnaire?.engagementSource, + obj.questionnaire?.otherEngagementSource || '' + ) + newObj.gender = createStringFromSelection(obj.basicInfo?.gender, obj.basicInfo?.otherGender || '') newObj.race = createStringFromSelection(obj.basicInfo?.race, obj.basicInfo?.otherRace || '') newObj.MLHCodeOfConduct = obj.termsAndConditions?.MLHCodeOfConduct newObj.MLHPrivacyPolicy = obj.termsAndConditions?.MLHPrivacyPolicy