Skip to content

Commit

Permalink
modal-preview:#2 - remove character length validation from project na…
Browse files Browse the repository at this point in the history
…me and description
  • Loading branch information
nikisthaa committed May 4, 2020
1 parent 9b67208 commit 1f61643
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/validations/Project.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as Yup from 'yup';
import moment from 'moment';

const validateProjectInformation = Yup.object().shape({
name: Yup.string().label('Title of your Project').trim().min(10).max(30).required(),
name: Yup.string().label('Title of your Project').trim().required(),
ongoing: Yup.boolean().label('Current work'),
startDate: Yup.date()
.label('Start date')
Expand All @@ -26,7 +26,7 @@ const validateProjectInformation = Yup.object().shape({
}
}),
type: Yup.string().required(),
description: Yup.string().label('Roles and Responsibilities').notRequired().min(60).max(200),
description: Yup.string().label('Roles and Responsibilities'),
});

export default validateProjectInformation;

0 comments on commit 1f61643

Please sign in to comment.