fix: errors
This commit is contained in:
parent
6b23ded1b0
commit
6783c90527
@ -41,10 +41,14 @@ export const Date = ({ currentQuestion }: DateProps) => {
|
||||
: new window.Date()
|
||||
)}
|
||||
onChange={(date) => {
|
||||
if (!date) {
|
||||
return;
|
||||
}
|
||||
|
||||
updateAnswer(
|
||||
currentQuestion.content.id,
|
||||
String(
|
||||
new window.Date(date?.toDate()).toLocaleDateString("ru-RU", {
|
||||
new window.Date(date.toDate()).toLocaleDateString("ru-RU", {
|
||||
year: "numeric",
|
||||
month: "2-digit",
|
||||
day: "2-digit",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user