From 56e420198b145c3dbd2fd8828d5eb32e3d4b0ed7 Mon Sep 17 00:00:00 2001 From: Yarne Coppens Date: Sun, 25 Aug 2024 19:06:53 +0200 Subject: [PATCH] Made total collection cost round to 2 decimals --- static/javascript/statistics.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/javascript/statistics.js b/static/javascript/statistics.js index 1039e98..880721c 100644 --- a/static/javascript/statistics.js +++ b/static/javascript/statistics.js @@ -462,6 +462,7 @@ async function loadStatistics(){ create_basic_statistic_chart(amount_of_games_statistic_data, 'Spellen in bezit') const total_collection_cost_statistic_data = await makeRequest(api_url+'/statistics/total_collection_cost') + total_collection_cost_statistic_data.result = total_collection_cost_statistic_data.result.toFixed(2) create_basic_statistic_chart(total_collection_cost_statistic_data, 'Totale kost van spellen in bezit', '\u20AC ')