diff --git a/frontend/react/src/events.ts b/frontend/react/src/events.ts index 8f4e86d9..4494b578 100644 --- a/frontend/react/src/events.ts +++ b/frontend/react/src/events.ts @@ -48,8 +48,8 @@ export class AppStateChangedEvent { static dispatch(state: OlympusState, subState: OlympusSubState) { const detail = { state, subState }; document.dispatchEvent(new CustomEvent(this.name, { detail })); - console.log(`Event ${this.name} dispatched with detail:`); - console.log(detail); + console.log(`Event ${this.name} dispatched`); + console.log(`State: ${state} Substate: ${subState}`); } } diff --git a/frontend/react/src/ui/modals/protectionprompt.tsx b/frontend/react/src/ui/modals/protectionprompt.tsx index 69002077..83fe2986 100644 --- a/frontend/react/src/ui/modals/protectionprompt.tsx +++ b/frontend/react/src/ui/modals/protectionprompt.tsx @@ -5,7 +5,7 @@ import { faArrowRight } from "@fortawesome/free-solid-svg-icons"; import { Unit } from "../../unit/unit"; import { FaLock } from "react-icons/fa6"; -export function ProtectionPrompt(props: {onContinue: (units: Unit[]) => void, onBack: () => void, units: Unit[] }) { +export function ProtectionPrompt(props: {onContinue: () => void, onBack: () => void }) { return ( void, on