Skip to content

Commit

Permalink
fix(*): changed
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoxAzrot committed Nov 18, 2024
1 parent 5d73a3b commit 4cd2ecb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useFinancialColumnChart(stats?: GetBiStatsFinancialsModel["stats
const categories = stats?.map(stat => dateKernelPort.format(new Date(stat.date), "MMMM yyyy")) ?? [];

const calculateSeries = (key: keyof BiStatsFinancialsResponse) => {
return stats?.map(stat => stat?.getStatTotalUsdEquivalent(key)) ?? [];
return stats?.map(stat => stat.getStatTotalUsdEquivalent(key)) ?? [];
};

const depositedSeries = calculateSeries("totalDeposited");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function useFinancialColumnChart(stats?: GetBiStatsFinancialsModel["stats
const categories = stats?.map(stat => dateKernelPort.format(new Date(stat.date), "MMMM yyyy")) ?? [];

const calculateSeries = (key: keyof BiStatsFinancialsResponse) => {
return stats?.map(stat => stat?.getStatTotalUsdEquivalent(key)) ?? [];
return stats?.map(stat => stat.getStatTotalUsdEquivalent(key)) ?? [];
};

const rewardedSeries = calculateSeries("totalRewarded");
Expand Down

0 comments on commit 4cd2ecb

Please sign in to comment.