Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix: min date for milestone (#9060)
Browse files Browse the repository at this point in the history
* [fix] overflow issue in repos section

* [ add ] min date for milestones

* [ update ] milestone min date
  • Loading branch information
Giuliano1993 authored Oct 1, 2023
1 parent e97e1ee commit f7e5c65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions models/Profile/Milestone.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const MilestoneSchema = new Schema({
date: {
type: Date,
required: true,
min: '1970-01-01'
},
isGoal: Boolean,
title: {
Expand Down
1 change: 1 addition & 0 deletions pages/account/manage/milestone/[[...data]].js
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ export default function ManageMilestone({ BASE_URL, milestone }) {
onChange={(e) => setDate(e.target.value)}
value={date}
required
min="1970-01-01"
/>
<p className="text-sm text-primary-low-medium">
For example: <i>DD / MM / YYYY</i>
Expand Down

0 comments on commit f7e5c65

Please sign in to comment.