Skip to content

Commit 4d62249

Browse files
authored
Merge pull request #727 from samurotko/Junction-Platform-2.0
HOTFIX: fixed edit registration modal and removed phone number from public profile information
2 parents baa5ffe + cf8af05 commit 4d62249

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

backend/modules/user-profile/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ UserProfileSchema.plugin(publicFieldsPlugin, {
9292
'firstName',
9393
'lastName',
9494
'email',
95-
'phoneNumber',
95+
//'phoneNumber',
9696
'headline',
9797
],
9898
})

frontend/src/components/modals/EditRegistrationModal/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ export default ({
5151
})
5252
}
5353
}, [idToken, registrationId, slug])
54-
5554
const participantName = useMemo(() => {
5655
if (!registration) return ''
5756
const { firstName, lastName } = registration.answers

frontend/src/components/tables/AttendeeTable/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export default ({
235235
return (
236236
<>
237237
<EditRegistrationModal
238-
teamCode={
238+
registrationId={
239239
activeModal === 'edit' ? searchParams.get('id') : undefined
240240
}
241241
onClose={resetSearch}

frontend/src/components/tables/TeamsTable/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export default ({ loading, teams = [], simplifiedView = false }) => {
4242
const openSingleTeamEdit = row => {
4343
const search = `?${new URLSearchParams({
4444
modal: 'editTeam',
45-
id: row.original.code,
45+
code: row.original.code,
4646
}).toString()}`
4747
dispatch(push({ search }))
4848
}
@@ -188,7 +188,7 @@ export default ({ loading, teams = [], simplifiedView = false }) => {
188188
<Grid container spacing={2}>
189189
<EditTeamModal
190190
teamCode={
191-
activeModal === 'editTeam' ? searchParams.get('id') : undefined
191+
activeModal === 'editTeam' ? searchParams.get('code') : undefined
192192
}
193193
onClose={resetSearch}
194194
/>

0 commit comments

Comments
 (0)