From fdba8ab26fdfd1bf5b6ed009b045dd945b912dee Mon Sep 17 00:00:00 2001 From: johan Date: Sun, 8 Jan 2023 20:58:23 +0100 Subject: [PATCH] IMPORTANT --- static/js/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/main.js b/static/js/main.js index e39197d..192ec04 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -768,7 +768,7 @@ function updateDemandes() { $('#treasure-list').append(`

${ad[ad_uid].title}

-
Indice: ${ad[ad_uid].desc}
+
Validité: ${ad[ad_uid].desc}
Statue: ${ad[ad_uid].treasureState}
${ (ad[ad_uid].treasureState != "Accepted" && ad[ad_uid].treasureState != "Refused" ) ? ` @@ -852,7 +852,7 @@ function updateNextActivity() { } next_acti = candidate.reduce(function(prev, curr) { - return new Date(prev.start) < new Date(curr.Cost) ? prev : curr; + return new Date(prev.start) < new Date(curr.start) ? prev : curr; }); var opt = {speed: 100};