Skip to content

Commit

Permalink
Remove notDetected
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBaulig committed Feb 16, 2024
1 parent be29034 commit f30d5dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ui/components/Improv.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ export default function Improv({
version,
nextUrl,
provisioned,
notDetected,
ssids,
improv
}) {
const [ isShowingWifiDialog, setShowWifiDialog] = useState(false);

if (notDetected && !initializing) {

if (!initialized && !initializing) {
return (
<EntitySection title="Wi-Fi" className={flex}>
<Icon className={css(flex, flexFill)} path={mdiWifiCancel} size={4}/>
Expand Down
6 changes: 4 additions & 2 deletions src/ui/components/useImprovSerial.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export default function useImprovSerial(port) {
nextUrl,
initialized: true,
initializing: false,
notDetected: false,
};
}
case 'scan_start':
Expand Down Expand Up @@ -53,7 +52,10 @@ export default function useImprovSerial(port) {
case 'disconnect':
return { ...state };
case 'initialize_failed':
return {...state, notDetected: true, initializing: false };
return {
...state,
initializing: false,
};
}
throw new Error(`Invalid action ${action.type}`);
}, {ssids: []});
Expand Down

0 comments on commit f30d5dc

Please sign in to comment.