From 53323ab3fb6b308430a45430d4b8258803c5404c Mon Sep 17 00:00:00 2001 From: Tatiana Kadykova Date: Mon, 25 Jan 2021 11:36:27 +0300 Subject: [PATCH] Fixed issues found during the review --- src/scripts/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/index.js b/src/scripts/index.js index 93bb616..acb4424 100644 --- a/src/scripts/index.js +++ b/src/scripts/index.js @@ -51,9 +51,9 @@ var dayButtons = new Vue({ axios.get("/api/days/brief").then((response) => { if (response.data.ok) { this.days = response.data.days; - for(let day of this.days) { + this.days.map((day) => { day.data = new Date(day.data); - } + }); } else { alert("The request to API was not successful. Please try again or contact the authors.");