chore: enable WebUI ESLint
This commit is contained in:
@@ -286,7 +286,6 @@ function RunElapsedStrip({
|
||||
const showTimer = startedAt != null;
|
||||
const stripLabel = goalStateStripPreview(goalState, t);
|
||||
const showGoal = !!stripLabel?.trim();
|
||||
if (!showTimer && !showGoal) return null;
|
||||
|
||||
const objectiveFull = goalState?.objective?.trim() ?? "";
|
||||
const summaryFull = goalState?.ui_summary?.trim() ?? "";
|
||||
@@ -349,6 +348,8 @@ function RunElapsedStrip({
|
||||
};
|
||||
}, [goalPanelOpen]);
|
||||
|
||||
if (!showTimer && !showGoal) return null;
|
||||
|
||||
const elapsed =
|
||||
startedAt != null ? Math.max(0, Math.floor(Date.now() / 1000 - startedAt)) : 0;
|
||||
const m = Math.floor(elapsed / 60);
|
||||
|
||||
Reference in New Issue
Block a user