Browse Source

fix(ui): guard against null value before colorizing sign

pull/7953/head
KenTandrian 2 days ago
parent
commit
c6fadba687
  1. 2
      libs/ui/src/lib/value/value.component.html

2
libs/ui/src/lib/value/value.component.html

@ -46,7 +46,7 @@
[class.justify-content-end]="position === 'end'" [class.justify-content-end]="position === 'end'"
> >
@if (isNumber || value === null) { @if (isNumber || value === null) {
@if (colorizeSign && !useAbsoluteValue) { @if (colorizeSign && !useAbsoluteValue && value !== null) {
@if (+value > 0) { @if (+value > 0) {
<div class="mr-1 text-success">+</div> <div class="mr-1 text-success">+</div>
} }

Loading…
Cancel
Save