Skip to content

Commit

Permalink
refactor: remove onchange
Browse files Browse the repository at this point in the history
  • Loading branch information
Manumartin95 committed Oct 4, 2023
1 parent 1aeb161 commit 26c323f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export const SelectRoleSection: FC<Props> = (props: Props) => {
const { t } = useTranslation()
const { field: showRecentRoleField } = useController({ control, name: 'showRecentRole' })
const { field: recentProjectRoleField } = useController({ control, name: 'recentProjectRole' })
const { field: projectField } = useController({ control, name: 'project' })
const [recentRoleListIsEmpty, setRecentRoleListIsEmpty] = useState(false)
const organizationRef = useRef<HTMLInputElement>(null)

Expand Down Expand Up @@ -65,7 +64,6 @@ export const SelectRoleSection: FC<Props> = (props: Props) => {
showRecentRoleField.onChange(false)
}}
onChange={(value) => {
projectField.onChange(value.project)
recentProjectRoleField.onChange(value)
}}
projectRole={recentProjectRoleField.value}
Expand Down

0 comments on commit 26c323f

Please sign in to comment.