Skip to content

Commit

Permalink
Fixed typo and reverted .toLowerCase matching
Browse files Browse the repository at this point in the history
  • Loading branch information
tschug committed Nov 5, 2023
1 parent be68ace commit 2f0ed5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions force-app/main/default/lwc/indicatorBundle/indicatorBundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class IndicatorBundle extends LightningElement {
this.hasHeader = true;
}

if(this.bundle.CardIconBackground || this.bundle.CardIconCoreground ){
if(this.bundle.CardIconBackground || this.bundle.CardIconForeground ){
this.card.iconClass = 'cardIcon slds-var-m-right_xx-small ';
} else {
this.card.iconClass = 'slds-var-m-right_xx-small ';
Expand Down Expand Up @@ -210,8 +210,8 @@ export default class IndicatorBundle extends LightningElement {
if(extension.IsActive){

let match = false;
let fieldValue = dataValue.toLowerCase();
let compareValue = extension.ContainsText.toLowerCase();
let fieldValue = dataValue; // TODO: This fails for numeric: .toLowerCase();
let compareValue = extension.ContainsText; // .toLowerCase();

// If the extension uses a String search, check if there is a match
if(compareValue) {
Expand Down

0 comments on commit 2f0ed5d

Please sign in to comment.