checking other branch

This commit is contained in:
masongga
2026-05-23 18:59:27 -06:00
parent 94dbd18946
commit 7deb3e83cb
4 changed files with 193 additions and 16 deletions

View File

@@ -6,7 +6,6 @@ export type DailyQuizAnswers = {
energy: number;
sleepLength: number;
sleepQuality: number;
journal: string;
};
export type AvatarCondition = {
@@ -29,7 +28,6 @@ export const defaultDailyQuizAnswers: DailyQuizAnswers = {
energy: 3,
sleepLength: 3,
sleepQuality: 3,
journal: "",
};
export function computeAvatarCondition(
@@ -71,6 +69,7 @@ export const defaultAvatarCondition: AvatarCondition = {
export function normalizeDailyQuizAnswers(
answers: Partial<DailyQuizAnswers> & {
mood?: number;
journal?: string;
},
): DailyQuizAnswers {
const scaleValue = (value: number | undefined, fallback: number) => {
@@ -92,6 +91,5 @@ export function normalizeDailyQuizAnswers(
answers.sleepQuality,
defaultDailyQuizAnswers.sleepQuality,
),
journal: answers.journal ?? "",
};
}