Skip to content

Commit

Permalink
fix(broken): Remove non-implemented screens
Browse files Browse the repository at this point in the history
  • Loading branch information
CaedenPH committed Apr 2, 2024
1 parent 32c7c6b commit acf0596
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/routes/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class StartPage {
});

// Version text
this.createText(`Version ${this.config.version}`, this.app.screen.width * 0.5, this.app.screen.height * 0.02, 11, {wordWrap: true});
this.createText(`Version ${this.config.version}`, this.app.screen.width * 0.5, this.app.screen.height * 0.03, 11, {wordWrap: true});

await this.waitForKeyPress(testNowContainer);
}
Expand Down Expand Up @@ -351,12 +351,13 @@ private async confirmSleepData(sleepData: { [key: string]: any }): Promise<boole
if (!ready) return false;

// Get sleep data
let sleepData;
while (true) {
sleepData = await this.displaySleepForm();
// Confirm sleep data
if (await this.confirmSleepData(sleepData)) break;
}
// TODO: Implement
// let sleepData;
// while (true) {
// sleepData = await this.displaySleepForm();
// // Confirm sleep data
// if (await this.confirmSleepData(sleepData)) break;
// }

// Display the Samn Perelli checklist
// Minus from 8 because the scale is inverted
Expand All @@ -368,8 +369,7 @@ private async confirmSleepData(sleepData: { [key: string]: any }): Promise<boole
}

return {
fatigueLevel,
...sleepData,
};
fatigueLevel
};
}
}

0 comments on commit acf0596

Please sign in to comment.