definitions fix

This commit is contained in:
Codex
2026-03-07 09:01:35 +00:00
parent 0aa59dfc18
commit d1b4812eb4

View File

@@ -4,11 +4,15 @@
export let config: CalculatorDef;
const label1 = config.labels.in1 || 'Unit 1';
const label2 = config.labels.in2 || 'Unit 2';
let label1 = 'Unit 1';
let label2 = 'Unit 2';
let def1: string | undefined;
let def2: string | undefined;
const def1 = getDefinition(label1);
const def2 = getDefinition(label2);
$: label1 = config.labels.in1 || 'Unit 1';
$: label2 = config.labels.in2 || 'Unit 2';
$: def1 = getDefinition(label1);
$: def2 = getDefinition(label2);
</script>
<section class="definition-card">