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