diff --git a/src/simple-status.tsx b/src/simple-status.tsx index 3616643..7fb3186 100644 --- a/src/simple-status.tsx +++ b/src/simple-status.tsx @@ -75,8 +75,8 @@ export default function SimpleCommand(props: CommandProps) { } }; - const handleCw = () => { - setShowCw(!showCw); + const handleCw = (value:boolean) => { + setShowCw(value); if (cwRef.current) { cwRef.current.focus(); } @@ -93,7 +93,7 @@ export default function SimpleCommand(props: CommandProps) { } > - {fqn &&