Skip to content

Commit

Permalink
Merge pull request #4698 from ParabolInc/fix-team-name-links
Browse files Browse the repository at this point in the history
Fix security issue #46
  • Loading branch information
mattkrick authored Mar 16, 2021
2 parents 1af3a3d + 10f6ad5 commit bc4d07a
Show file tree
Hide file tree
Showing 15 changed files with 164 additions and 305 deletions.
2 changes: 1 addition & 1 deletion packages/client/components/StageTimerModalTimeLimit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const StageTimerModalTimeLimit = (props: Props) => {
<StyledButton onClick={startTimer}>
{scheduledEndTime ? 'Add Time' : `Start ${MeetingLabels.TIMER}`}
</StyledButton>
{error && <StyledError>{error}</StyledError>}
{error && <StyledError>{error.message}</StyledError>}
</SetLimit>
)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/client/hooks/useForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ const useForm = (fieldInputDict: FieldInputDict, deps: any[] = []) => {

const validate = useEventCallback((name: string, value: any) => {
const validateField = fieldInputDict[name].validate
if (!validateField) return {error: undefined, value: state[name].value}
if (!validateField) return {error: undefined, value}
const res: Legitity = validateField(value)
dispatch({type: 'setError', name, error: res.error})
return res
Expand Down
2 changes: 1 addition & 1 deletion packages/client/modules/newTeam/NewTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ const NewTeam = (props: Props) => {
return (
<NewTeamLayout>
<NewTeamInner>
<NewTeamForm isNewOrganization={!defaultOrgId} organizations={organizations} />
<NewTeamForm isInitiallyNewOrg={!defaultOrgId} organizations={organizations} />
{isDesktop && (
<HelpLayout>
<HelpBlock>
Expand Down
Loading

0 comments on commit bc4d07a

Please sign in to comment.