Skip to content

Commit

Permalink
fix: use const in home.component
Browse files Browse the repository at this point in the history
  • Loading branch information
jakerenzella committed Jul 21, 2022
1 parent 2920161 commit e16aeec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/home/states/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export class HomeComponent implements OnInit, OnDestroy {

showDate = this.DateService.showDate;

generateUnitProgress(project) {
generateUnitProgress(project): number {
const start = new Date(project.start_date);
const end = new Date(project.end_date);
const today = new Date();
Expand All @@ -114,11 +114,11 @@ export class HomeComponent implements OnInit, OnDestroy {
return Math.round((q / d) * 100);
}

testForNewUserWizard() {
let firstTimeUser = this.currentUser.hasRunFirstTimeSetup === false;
testForNewUserWizard(): boolean {
const firstTimeUser = this.currentUser.hasRunFirstTimeSetup === false;
let userHasNotOptedIn = this.currentUser.optInToResearch === null;

let showNewUserWizard = firstTimeUser || userHasNotOptedIn;
const showNewUserWizard = firstTimeUser || userHasNotOptedIn;
userHasNotOptedIn = userHasNotOptedIn && !firstTimeUser;

if (showNewUserWizard) {
Expand Down

0 comments on commit e16aeec

Please sign in to comment.