aboutsummaryrefslogtreecommitdiff
path: root/src/routes
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/groceries/+page.svelte2
-rw-r--r--src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts3
2 files changed, 2 insertions, 3 deletions
diff --git a/src/routes/groceries/+page.svelte b/src/routes/groceries/+page.svelte
index 5d88e49..616dc75 100644
--- a/src/routes/groceries/+page.svelte
+++ b/src/routes/groceries/+page.svelte
@@ -14,7 +14,7 @@
// eslint-disable-next-line svelte/prefer-writable-derived
let localItems = $state<EnrichedGrocery[]>([]);
let addError = $state('');
- // Sync local list with server data when it changes externally (toggle, navigation)
+ // Sync local list when server data changes (toggle, navigation).
$effect(() => {
localItems = data?.items ?? [];
});
diff --git a/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts b/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts
index 891a7b6..cb14e0d 100644
--- a/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts
+++ b/src/routes/projects/[projectId]/routine/[routineId]/+page.server.ts
@@ -25,8 +25,7 @@ export const load: PageServerLoad = async ({ params }) => {
}
const completions = await loadCompletions(routineId);
- // An archived routine is frozen at its archive instant: state and chart
- // stop there instead of now.
+ // Archived routines are frozen at their archive instant, not now.
const at = routine.archivedAt
? Temporal.Instant.from(routine.archivedAt)
: Temporal.Now.instant();