diff --git a/static/js/main.js b/static/js/main.js index 09fba0b..e60e2d4 100644 --- a/static/js/main.js +++ b/static/js/main.js @@ -645,13 +645,14 @@ function updateDemandes() { let pd = []; for (pd_uid in data.prankData) { if (data.prankData[pd_uid].creator == localStorage.getItem('user')) { + data.prankData[pd_uid].prankUid = pd_uid; pd.push(data.prankData[pd_uid]); } } pd.sort((a, b) => new Date(b.date) - new Date(a.date)); for(const pd_uid in pd) { $('#demande-list').append(` - +

Demande de crêpe

Quantité: ${pd[pd_uid].amount}
Garniture: ${pd[pd_uid].supplement}