mirror of
https://github.com/usatiuk/door-thing.git
synced 2025-10-26 11:17:47 +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>
|
||||
<button onClick={onDisconnectClick}>Disconnect</button>
|
||||
<span>{doorOpen ? "open" : "closed"}</span>
|
||||
{doorOpen != null && <span>{doorOpen ? "open" : "closed"}</span>}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user