Fix UI issues
This commit is contained in:
fraxle
2026-06-02 22:40:15 +01:00
parent 137e1a3058
commit e00d38cbfb
7 changed files with 61 additions and 28 deletions
+3 -3
View File
@@ -339,17 +339,17 @@ export function useAppState() {
const activityValue = activeProfile === 'outdoors' && activityVariantKeys.includes(outdoorsVariant)
? outdoorsVariant
: 'off';
const activityLabel = activityOptions.find((o) => o.value === activityValue)?.label;
const activityLabel = activityOptions.find((o) => o.value === activityValue)?.name;
const placeValue = activeProfile === 'outdoors' && placeVariantKeys.includes(outdoorsVariant)
? outdoorsVariant
: 'off';
const placeLabel = placeOptions.find((o) => o.value === placeValue)?.label;
const placeLabel = placeOptions.find((o) => o.value === placeValue)?.name;
const workValue = activeProfile === 'farming'
? 'farming'
: activeProfile === 'outdoors' && workVariantKeys.includes(outdoorsVariant)
? outdoorsVariant
: 'off';
const workLabel = workOptions.find((o) => o.value === workValue)?.label;
const workLabel = workOptions.find((o) => o.value === workValue)?.name;
// ── 6. TABLE REFS ────────────────────────────────────────────────────
const headStickyRef = useRef(null);