IMPORTANT

This commit is contained in:
johan 2023-01-08 20:58:23 +01:00
parent 609f0ec9d0
commit fdba8ab26f

View file

@ -768,7 +768,7 @@ function updateDemandes() {
$('#treasure-list').append(`
<span id="${ad_uid}" class="treasure ${ad[ad_uid].treasureState == "Accepted" ? "treasure-accepted" : ""}">
<h2 class="treasure-title">${ad[ad_uid].title}</h2>
<div class="treasure-desc">Indice: ${ad[ad_uid].desc}</div>
<div class="treasure-desc">Validité: ${ad[ad_uid].desc}</div>
<div class="treasure-status">Statue: ${ad[ad_uid].treasureState}</div>
${ (ad[ad_uid].treasureState != "Accepted" && ad[ad_uid].treasureState != "Refused" ) ?
`<span class="treasure-btn">
@ -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};