Skip to content

Commit

Permalink
FIX: remove the todate
Browse files Browse the repository at this point in the history
  • Loading branch information
123rand456 committed Aug 15, 2024
1 parent 008e83b commit 7bde421
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion front/react/src/components/portfolio/PortfolioManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ const PortfolioManager = () => {
};
const {chartData, labels} = getDataByType(portfolioType.toUpperCase());

const dateRangeSubtitle = formattedDate && formattedLastDate ? `${formattedDate} - ${formattedLastDate}` : formattedDate || '';

return (
<Box>
Expand Down Expand Up @@ -129,7 +130,7 @@ const PortfolioManager = () => {
title={<Heading as="h2" color="brand.10">Portfolio Performance</Heading>}
subtitle={<GrayText fontSize="2xl"
fontWeight="bold">
{formattedDate || 'Date not available'} - {formattedLastDate || 'to date'}
{dateRangeSubtitle || 'Date not available'}
</GrayText>}
chart={<LineChart2 datasets={[chartData]} labels={labels} view={currentView}
scaleToFit={true}/>}
Expand Down

0 comments on commit 7bde421

Please sign in to comment.