Skip to content

Commit

Permalink
chore: example update
Browse files Browse the repository at this point in the history
  • Loading branch information
oflisback committed Mar 12, 2023
1 parent aafd192 commit 8781f02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,12 @@ const App = () => {
onChange={(e) => setAlertCount(e.target.checked ? 1 : 0)}
type='checkbox'
style={{ height: '20px', width: '20px' }}
checked={(alertCount && alertCount > 0) as boolean}
checked={!!alertCount && alertCount > 0}
/>
<div>Alert count</div>
<input
type='number'
value={alertCount}
value={alertCount ? alertCount : 0}
onChange={(e) => setAlertCount(parseInt(e.target.value))}
/>
</div>
Expand Down

0 comments on commit 8781f02

Please sign in to comment.