Skip to content

Commit

Permalink
fix: fix date not being parsed
Browse files Browse the repository at this point in the history
  • Loading branch information
rasulov1337 committed Dec 16, 2024
1 parent a16fb54 commit 8e54b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/EditAdvertPage/EditAdvertPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,15 +163,15 @@ export default class EditAdvertPage {
name: 'dateFrom',
type: 'date',
value: data
? data.adDateFrom
? data.adDateFrom.slice(0, 10)
: new Date().toISOString().slice(0, 10),
},
{
label: 'Доступные даты: по',
name: 'dateTo',
type: 'date',
value: data
? data.adDateTo
? data.adDateTo.slice(0, 10)
: new Date().toISOString().slice(0, 10),
},
{
Expand Down

0 comments on commit 8e54b1d

Please sign in to comment.