Skip to content

Commit

Permalink
fix(nrplus): always show temp if available
Browse files Browse the repository at this point in the history
  • Loading branch information
coderbyheart committed Nov 1, 2023
1 parent 12c758f commit 88d93f6
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/NRPlusGatewayTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,15 +138,17 @@ const Node = ({
<Hexagon strokeWidth={1} class="ms-2 p-1" /> {id}
</dt>
<dd>
{hasCode && !configure && (
{!configure && (
<span class="p-1">
<button
type="button"
class="me-2"
onClick={() => setConfigure(true)}
>
<Lightbulb strokeWidth={1} />
</button>
{hasCode && (
<button
type="button"
class="me-2"
onClick={() => setConfigure(true)}
>
<Lightbulb strokeWidth={1} />
</button>
)}
{temp !== undefined && (
<span>
<Thermometer strokeWidth={1} /> {temp.toFixed(1)} °C
Expand Down

0 comments on commit 88d93f6

Please sign in to comment.