Browse Source

Fixed if-else sequence for the correct appearance when the fullfilled rules and active rules equal zero.

pull/4394/head
tobikugel 6 months ago
parent
commit
d1316a8bed
  1. 8
      apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html

8
apps/client/src/app/pages/portfolio/x-ray/x-ray-page.component.html

@ -29,14 +29,14 @@
}" }"
> >
@if ( @if (
statistics?.rulesFulfilledCount === statistics?.rulesActiveCount
) {
<ion-icon name="checkmark-circle-outline" />
} @else if (
statistics?.rulesActiveCount === 0 || statistics?.rulesActiveCount === 0 ||
statistics?.rulesFulfilledCount === 0 statistics?.rulesFulfilledCount === 0
) { ) {
<ion-icon class="text-muted" name="remove-circle-outline" /> <ion-icon class="text-muted" name="remove-circle-outline" />
} @else if (
statistics?.rulesFulfilledCount === statistics?.rulesActiveCount
) {
<ion-icon name="checkmark-circle-outline" />
} @else { } @else {
<ion-icon name="warning-outline" /> <ion-icon name="warning-outline" />
} }

Loading…
Cancel
Save