Skip to content

Commit

Permalink
Merge pull request #69 from saniho/68-nouvelle-version-montre-une-erreur
Browse files Browse the repository at this point in the history
correction pour ceux n'utilisant pas myEnedis
  • Loading branch information
saniho authored Jan 5, 2023
2 parents 50f191c + e536228 commit a5c6c9c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion content-card-linky.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ class ContentCardLinky extends LitElement {
}
}
renderInformation(attributes, config) {
if (true) {
if (attributes.serviceEnedis === undefined ) {
return html ``
}
else{
if ( attributes.serviceEnedis !== "myElectricalData" ){
return html `
<div class="information-msg" style="color: red">
Expand Down Expand Up @@ -534,6 +537,9 @@ class ContentCardLinky extends LitElement {
}

renderEcoWatt(attributes, config) {
if (attributes.serviceEnedis === undefined ){
return html ``;
}
if ( attributes.serviceEnedis !== "myElectricalData" ){
return html `EcoWatt : uniquement disponible avec myElectricData`;
}
Expand Down

0 comments on commit a5c6c9c

Please sign in to comment.