Skip to content
Snippets Groups Projects
Commit f7f6e672 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

fix(analysis): Fix navigation issue in monthly analysis

parent ca198d05
No related branches found
No related tags found
1 merge request!604Resolve "[Analyse] La navigation dans le passé sur la page analyse fait crash l'app"
...@@ -160,7 +160,11 @@ const ElecHalfHourMonthlyAnalysis: React.FC<ElecHalfHourMonthlyAnalysisProps> = ...@@ -160,7 +160,11 @@ const ElecHalfHourMonthlyAnalysis: React.FC<ElecHalfHourMonthlyAnalysisProps> =
</div> </div>
{!isLoading ? ( {!isLoading ? (
<> <>
{monthDataloads ? ( {monthDataloads &&
monthDataloads.weekend &&
monthDataloads.week &&
monthDataloads.weekend[0] !== null &&
monthDataloads.week[0] !== null ? (
<ElecHalfHourChart <ElecHalfHourChart
dataLoad={ dataLoad={
isWeekend ? monthDataloads.weekend : monthDataloads.week isWeekend ? monthDataloads.weekend : monthDataloads.week
...@@ -215,7 +219,7 @@ const ElecHalfHourMonthlyAnalysis: React.FC<ElecHalfHourMonthlyAnalysisProps> = ...@@ -215,7 +219,7 @@ const ElecHalfHourMonthlyAnalysis: React.FC<ElecHalfHourMonthlyAnalysisProps> =
<span className="text-18-normal"> %</span> <span className="text-18-normal"> %</span>
</div> </div>
<div className="text-18-bold"> <div className="text-18-bold">
{elecPrice {elecPrice && elecPrice.price
? ( ? (
enedisAnalysisValues.minimumLoad * enedisAnalysisValues.minimumLoad *
elecPrice.price elecPrice.price
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment