Browse Source

Fix loading state

pull/824/head
Thomas 3 years ago
parent
commit
135bc1f496
  1. 4
      libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

4
libs/ui/src/lib/fire-calculator/fire-calculator.component.ts

@ -84,7 +84,7 @@ export class FireCalculatorComponent
} }
public ngAfterViewInit() { public ngAfterViewInit() {
if (this.fireWealth >= 0) { if (this.fireWealth && this.fireWealth >= 0) {
setTimeout(() => { setTimeout(() => {
// Wait for the chartCanvas // Wait for the chartCanvas
this.calculatorForm.patchValue({ this.calculatorForm.patchValue({
@ -98,7 +98,7 @@ export class FireCalculatorComponent
} }
public ngOnChanges() { public ngOnChanges() {
if (this.fireWealth >= 0) { if (this.fireWealth && this.fireWealth >= 0) {
setTimeout(() => { setTimeout(() => {
// Wait for the chartCanvas // Wait for the chartCanvas
this.calculatorForm.patchValue({ this.calculatorForm.patchValue({

Loading…
Cancel
Save