Skip to content

Commit

Permalink
Make sure that 0 percent and 0 currency and 0 doubles still get forma…
Browse files Browse the repository at this point in the history
…tting symbols (#53)
  • Loading branch information
pickettd authored Nov 26, 2024
1 parent 66f600d commit bec074a
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,13 @@ export default class StickySelectronDataCell extends LightningElement {

get fieldValForObject() {
const inputVal = this.object?.[this.fieldName];
if (inputVal) {
// We may get a zero value from Apex that should still be rendered with our JS formatting
if (
inputVal ||
this.sfType === 'CURRENCY' ||
this.sfType === 'PERCENT' ||
this.sfType === 'DOUBLE'
) {
if (this.sfType === 'DATETIME') {
const hasDate = true;
const hasTime = true;
Expand Down

0 comments on commit bec074a

Please sign in to comment.