Skip to content

Commit

Permalink
Merge pull request #1961 from bcgov/bugfix/ALCS-2333
Browse files Browse the repository at this point in the history
Fix Subdivision Proposed Lots Total Area Error Not showing in Review and Submit Step
  • Loading branch information
Abradat authored Nov 6, 2024
2 parents 4ed64bb + 9c99542 commit ca24469
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ export class SubdDetailsComponent {
constructor(
private router: Router,
private applicationDocumentService: ApplicationDocumentService,
private applicationParcelService: ApplicationParcelService
private applicationParcelService: ApplicationParcelService,
) {}

async onEditSection(step: number) {
if (this.draftMode) {
await this.router.navigateByUrl(
`/alcs/application/${this._applicationSubmission?.fileNumber}/edit/${step}?errors=t`
`/alcs/application/${this._applicationSubmission?.fileNumber}/edit/${step}?errors=t`,
);
} else {
await this.router.navigateByUrl(`application/${this._applicationSubmission?.fileNumber}/edit/${step}?errors=t`);
Expand All @@ -69,7 +69,7 @@ export class SubdDetailsComponent {
if (parcels) {
this.totalTargetAcres = parcels
.reduce((total, parcel) => total + (parcel.mapAreaHectares ? parseFloat(parcel.mapAreaHectares) : 0), 0)
.toFixed(2);
.toFixed(5);
}
}
}
Expand Down

0 comments on commit ca24469

Please sign in to comment.