Skip to content

Commit

Permalink
clean up commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 committed Jan 11, 2024
1 parent 124f8fc commit 35b1e45
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ class PackageCoverageFields extends Component {

validateCoverageDate = (value) => {
const { intl } = this.props;
// dayjs.locale(intl.locale);
// const dateFormat = dayjs.localeData().longDateFormat('L');
const dateFormat = getLocaleDateFormat({ intl });
let errors;

Expand Down
1 change: 0 additions & 1 deletion src/components/resource/_fields/validate-date-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { FormattedDate, dayjs, DayRange, getLocaleDateFormat } from '@folio/stri
* @returns {} - an error object if errors are found, or `undefined` otherwise
*/
const validateDateFormat = (dateRange, locale) => {
// dayjs.locale(locale);
const dateFormat = getLocaleDateFormat({ intl: { locale } });
const message = <FormattedMessage id="ui-eholdings.validate.errors.dateRange.format" values={{ dateFormat }} />;

Expand Down

0 comments on commit 35b1e45

Please sign in to comment.