From 74761d04f92977d51452091ffa155099568b1d84 Mon Sep 17 00:00:00 2001 From: Peter York Date: Thu, 16 Jan 2025 10:29:58 +0000 Subject: [PATCH] Change metric -> criterion --- src/lib/PrevNext.svelte | 14 +++++++++++--- src/routes/planning/assessment/Question.svelte | 2 +- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/lib/PrevNext.svelte b/src/lib/PrevNext.svelte index d8a17a54a7..29a8e36ade 100644 --- a/src/lib/PrevNext.svelte +++ b/src/lib/PrevNext.svelte @@ -5,10 +5,15 @@ export let total: number; export let urlPath: string; export let startIdx = 1; + export let questionType: string = "metric"; function formatIndex(idx: number): string { return (idx + startIdx - 1).toString().padStart(2, "0"); } + + function capitaliseFirstCharacter(string: string) { + return string.charAt(0).toUpperCase() + string.slice(1);; + }