Skip to content

Commit

Permalink
Update PostUploader.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmadchaabane26 authored Nov 9, 2023
1 parent 5eb9fe6 commit 52432e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion digital-memory-book/src/PostUploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class PostUploader extends Component {
onChange={this.handleDateChange}
value={this.state.formData.date ? this.state.formData.date.toISOString().substring(0, 10) : (() => {
const currentDate = new Date();
currentDate.setDate(currentDate.getDate() - 1);
currentDate.setDate(currentDate.getDate());
return currentDate.toISOString().substring(0, 10);
})()}
/>
Expand Down

0 comments on commit 52432e0

Please sign in to comment.