Browse Source

Fix projected sustainable retirement income for projected total amount of zero

pull/7971/head
Thomas Kaul 2 weeks ago
parent
commit
ca054e345d
  1. 3
      apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

3
apps/client/src/app/pages/portfolio/fire/fire-page.component.ts

@ -27,6 +27,7 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { FormControl } from '@angular/forms';
import { Big } from 'big.js';
import { isNumber } from 'lodash';
import { DeviceDetectorService } from 'ngx-device-detector';
import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
@ -256,7 +257,7 @@ export class GfFirePageComponent implements OnInit {
private calculateWithdrawalRatesProjected() {
if (
this.fireWealth &&
this.projectedTotalAmount &&
isNumber(this.projectedTotalAmount) &&
this.user?.settings?.safeWithdrawalRate
) {
this.withdrawalRatePerYearProjected = new Big(

Loading…
Cancel
Save