made responsible field mandatory

Signed-off-by: Lykke Axlin <lykkeaxlin@hotmail.com>

Co-authored-by: klaraab <klarabroman@live.se>
This commit is contained in:
Lykke Axlin
2021-11-09 15:21:06 +01:00
parent 71ab8de049
commit 8380792557
3 changed files with 50 additions and 4 deletions
@@ -173,18 +173,19 @@ export const ProjectDialog = ({
options={['small', 'medium', 'large']}
/>
<DoubleDateSelector setValue={setValue} control={control} />
<InputField
error={errors.responsible}
control={control}
rules={{
required: false,
required: true,
}}
inputType="responsible"
helperText="please enter a contact person"
placeholder="Contact person of the project"
/>
<DoubleDateSelector setValue={setValue} control={control} />
<InputField
error={errors.community}
control={control}