mirror of
https://git.roussel.pro/telecom-paris/pact.git
synced 2026-02-09 10:30:17 +01:00
suppression console log + ajout script pour build
This commit is contained in:
@@ -50,10 +50,6 @@ export default function Home() {
|
||||
|
||||
const { stats, loading, error } = useStats(14, "jour");
|
||||
|
||||
useEffect(() => {
|
||||
console.log(getDay(new Date("2023-03-20T14:00:00.000Z")))
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
if (!error && !loading) {
|
||||
let reviewCount = [null, null, null, null, null, null, null];
|
||||
@@ -67,7 +63,6 @@ export default function Home() {
|
||||
let day = (date.getDay() - 1) % 7;
|
||||
let week = getWeek(date, 1);
|
||||
let thisWeek = getWeek(now, 1);
|
||||
console.log({ date, week, thisWeek, day })
|
||||
if (week == thisWeek) {
|
||||
reviewCount[day] = stats[i].nb_avis;
|
||||
reviewAvg[day] = stats[i].moyenne_globale;
|
||||
|
||||
Reference in New Issue
Block a user