diff --git a/apps/web/src/App.tsx b/apps/web/src/App.tsx index c459719..25ef71d 100644 --- a/apps/web/src/App.tsx +++ b/apps/web/src/App.tsx @@ -76,6 +76,9 @@ function useActionBarAnimation(combatantCount: number) { export function App() { const { encounter, + isEmpty, + hasCreatureCombatants, + canRollAllInitiative, advanceTurn, retreatTurn, addCombatant, @@ -211,14 +214,6 @@ export function App() { sidePanel.showCreature, ]); - const isEmpty = encounter.combatants.length === 0; - const hasCreatureCombatants = encounter.combatants.some( - (c) => c.creatureId != null, - ); - const canRollAllInitiative = encounter.combatants.some( - (c) => c.creatureId != null && c.initiative == null, - ); - return (