Skip to content

Commit

Permalink
fix: add unloaded state to progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerenzella committed Oct 5, 2022
1 parent 5abda03 commit 2c3a28e
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ export class ProjectProgressBarComponent {
constructor() {}

ngOnChanges(changes: SimpleChanges) {
if (changes.progress && changes.progress.currentValue) {
this.percentProgress = this.progress[4]?.value;
if (changes.progress) {
if (changes.progress.currentValue) {
this.percentProgress = this.progress[4]?.value;
} else {
this.percentProgress = 0;
}
}
}
}

0 comments on commit 2c3a28e

Please sign in to comment.