Skip to content
Snippets Groups Projects
Commit 45a5c65b authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

chore(lint): fix leaked rendering

parent acdc14ee
No related branches found
No related tags found
1 merge request!1255chore(lint): fix leaked rendering
...@@ -78,6 +78,7 @@ module.exports = { ...@@ -78,6 +78,7 @@ module.exports = {
'@eslint-react/dom/no-dangerously-set-innerhtml': 0, // used for for injecting html tags '@eslint-react/dom/no-dangerously-set-innerhtml': 0, // used for for injecting html tags
'@eslint-react/no-array-index-key': 0, '@eslint-react/no-array-index-key': 0,
'@eslint-react/no-unused-class-component-members': 0, // disabled for ".d.ts" files '@eslint-react/no-unused-class-component-members': 0, // disabled for ".d.ts" files
'@eslint-react/no-leaked-conditional-rendering': 'error', // important ! avoids rendering 0
}, },
}, },
{ {
......
...@@ -293,9 +293,7 @@ const Bar = ({ ...@@ -293,9 +293,7 @@ const Bar = ({
/> />
</g> </g>
) : ( ) : (
height > 0 && Boolean(height > 0 && dataload.value && dataload.value >= 0) && (
dataload.value &&
dataload.value >= 0 && (
// default colored bar // default colored bar
<g <g
className="barValue" className="barValue"
......
...@@ -97,7 +97,7 @@ const ProfileTypeOptions = () => { ...@@ -97,7 +97,7 @@ const ProfileTypeOptions = () => {
<div className="value"> <div className="value">
{t(`profile_type.housing_type.${profileType.housingType}`)} {t(`profile_type.housing_type.${profileType.housingType}`)}
</div> </div>
{profileType.constructionYear && ( {Boolean(profileType.constructionYear) && (
<div className="value"> <div className="value">
{t( {t(
`profile_type.construction_year.${ `profile_type.construction_year.${
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment