Skip to content

Commit

Permalink
fix: avoid random 0 in table
Browse files Browse the repository at this point in the history
  • Loading branch information
edoardo committed Nov 25, 2024
1 parent 74213ea commit ad2e2a5
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions src/components/DataDimension/Info/ProgramIndicatorInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,27 @@ export const ProgramIndicatorInfo = ({ id, displayNameProp }) => {
boundaryTarget
)}
</span>
{offsetPeriods && offsetPeriodType && (
<>
<br />
<span>
<span className="label">
{i18n.t('Offset:')}
&nbsp;
{Boolean(offsetPeriods) &&
Boolean(offsetPeriodType) && (
<>
<br />
<span>
<span className="label">
{i18n.t(
'Offset:'
)}
&nbsp;
</span>
{i18n.t(
'{{ offsetPeriodType }} × {{ offsetPeriods }}',
{
offsetPeriodType,
offsetPeriods,
}
)}
</span>
{i18n.t(
'{{ offsetPeriodType }} × {{ offsetPeriods }}',
{
offsetPeriodType,
offsetPeriods,
}
)}
</span>
</>
)}
</>
)}
</li>
)
)}
Expand Down

0 comments on commit ad2e2a5

Please sign in to comment.