Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
nengyuanzhang committed May 22, 2024
2 parents d2d2e79 + 19cf43e commit f984319
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Added
### Changed
### Fixed
- fixed totalRatedCapacity and totalRatedPower issue in microgrid dashboard and energy storage power station dashboard
### Removed

## [v4.5.0] - 2024-05-21
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,10 @@ const CollectionDashboard = ({ setRedirect, setRedirectUrl, t }) => {
{1 && <CountUp end={energyStoragePowerStationList.length} duration={2} prefix="" separator="," decimal="." decimals={0} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Rated Power')} footunit={'kW'} color="ratedPower">
{1 && <CountUp end={totalRatedCapacity} duration={2} prefix="" separator="," decimal="." decimals={2} />}
{1 && <CountUp end={totalRatedPower} duration={2} prefix="" separator="," decimal="." decimals={2} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Rated Capacity')} footunit={'kWh'} color="ratedCapacity">
{1 && <CountUp end={totalRatedPower} duration={2} prefix="" separator="," decimal="." decimals={2} />}
{1 && <CountUp end={totalRatedCapacity} duration={2} prefix="" separator="," decimal="." decimals={2} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Charge')} footunit={'kWh'} color="electricity">
{1 && <CountUp end={totalCharge} duration={2} prefix="" separator="," decimal="." decimals={2} />}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -399,10 +399,10 @@ const Dashboard = ({ setRedirect, setRedirectUrl, t }) => {
{1 && <CountUp end={energyStoragePowerStationList.length} duration={2} prefix="" separator="," decimal="." decimals={0} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Rated Power')} footunit={'kW'} color="ratedPower">
{1 && <CountUp end={totalRatedCapacity} duration={2} prefix="" separator="," decimal="." decimals={2} />}
{1 && <CountUp end={totalRatedPower} duration={2} prefix="" separator="," decimal="." decimals={2} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Rated Capacity')} footunit={'kWh'} color="ratedCapacity">
{1 && <CountUp end={totalRatedPower} duration={2} prefix="" separator="," decimal="." decimals={2} />}
{1 && <CountUp end={totalRatedCapacity} duration={2} prefix="" separator="," decimal="." decimals={2} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Charge')} footunit={'kWh'} color="electricity">
{1 && <CountUp end={totalCharge} duration={2} prefix="" separator="," decimal="." decimals={2} />}
Expand Down
4 changes: 2 additions & 2 deletions myems-web/src/components/MyEMS/Microgrid/Dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,10 +425,10 @@ const Dashboard = ({ setRedirect, setRedirectUrl, t }) => {
{1 && <CountUp end={microgridList.length} duration={2} prefix="" separator="," decimal="." decimals={0} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Rated Power')} footunit={'kW'} color="ratedPower">
{1 && <CountUp end={totalRatedCapacity} duration={2} prefix="" separator="," decimal="." decimals={2} />}
{1 && <CountUp end={totalRatedPower} duration={2} prefix="" separator="," decimal="." decimals={2} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Rated Capacity')} footunit={'kWh'} color="ratedCapacity">
{1 && <CountUp end={totalRatedPower} duration={2} prefix="" separator="," decimal="." decimals={2} />}
{1 && <CountUp end={totalRatedCapacity} duration={2} prefix="" separator="," decimal="." decimals={2} />}
</CardSummary>
<CardSummary rate={''} title={t('Total Charge')} footunit={'kWh'} color="electricity">
{1 && <CountUp end={totalCharge} duration={2} prefix="" separator="," decimal="." decimals={2} />}
Expand Down

0 comments on commit f984319

Please sign in to comment.