Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Commit

Permalink
Restrict TutorPicker to one tutor
Browse files Browse the repository at this point in the history
Issue #123
  • Loading branch information
rafalopilowski1 authored Jun 12, 2022
1 parent 06be325 commit 1db9a27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alt-api-ui/src/schedule-viewer/pickers/UniversalPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function UniversalPicker(props: UniversalPickerProps<string>) {
auto
id={'addTutorButton'}
icon={<FontAwesomeIcon icon={faAdd} />}
disabled={!formik.isValid}
disabled={!formik.isValid || (props.values.length > 0 && props.operationMode == ModeChoice.TUTOR)}
onClick={() => formik.handleSubmit()}
>
Dodaj
Expand Down

0 comments on commit 1db9a27

Please sign in to comment.