Skip to content

Commit a573636

Browse files
committed
fix(socket-provider): dont get stuck on the boot state
Signed-off-by: Mimoja <[email protected]>
1 parent 94bbb22 commit a573636

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: src/components/store/SocketProviderValue.tsx

+5
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,11 @@ export const SocketProviderValue = () => {
112112
return;
113113
}
114114

115+
// We ignore the boot state but ensure the machine is in idle
116+
if (data?.name === 'boot' && data?.state === 'idle') {
117+
return;
118+
}
119+
115120
// When the machine is not in idle, lock the screen at Barometer
116121
if (data?.name !== 'idle') {
117122
dispatch(setScreen('barometer'));

0 commit comments

Comments
 (0)