mirror of
https://github.com/usatiuk/door-thing.git
synced 2025-10-26 19:17:49 +01:00
do not show door status until it's open
This commit is contained in:
@@ -84,7 +84,7 @@ export function App() {
|
|||||||
<>
|
<>
|
||||||
<span>connected</span>
|
<span>connected</span>
|
||||||
<button onClick={onDisconnectClick}>Disconnect</button>
|
<button onClick={onDisconnectClick}>Disconnect</button>
|
||||||
<span>{doorOpen ? "open" : "closed"}</span>
|
{doorOpen != null && <span>{doorOpen ? "open" : "closed"}</span>}
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user