Skip to content

Commit

Permalink
Update GameDashboardCard.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Bouh committed Feb 4, 2025
1 parent 20a06c2 commit 80faa45
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions newIDE/app/src/GameDashboard/GameDashboardCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -571,14 +571,18 @@ const GameDashboardCard = ({
if (gameRollingMetrics) {
// TODO
// gameRollingMetrics is an array of something but return always an empty array, because of no stats on dev ?
// GDevelop\GDevelop\newIDE\app\src\Utils\GDevelopServices\Analytics.js
// Develop\GDevelop\newIDE\app\src\Utils\GDevelopServices\Analytics.js

//console.log(gameRollingMetrics.retention.d7RetainedPlayers);
console.log(gameRollingMetrics);

// get only the last 7 days.
console.log(gameRollingMetrics.slice(0, 7));

//Voir comment concaténé les d0Sessions de gameRollingMetrics pour avoir les joueurs des 7 derniers jours.

const countOfSessionLast7Days = hasNoSession
? 0
: gameRollingMetrics.sessions.d0Sessions;
: gameRollingMetrics[0].sessions.d0Sessions;

// TODO
// See why in local there is no return carriage working
Expand Down

0 comments on commit 80faa45

Please sign in to comment.