Skip to content

Commit

Permalink
Update src/pages/MontyHall/MontyHall.tsx
Browse files Browse the repository at this point in the history
Co-authored-by: Aashutosh Rathi <aashutoshrathi@gmail.com>
  • Loading branch information
mohitkyadav and aashutoshrathi committed Jul 4, 2022
1 parent b905806 commit 72031df
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pages/MontyHall/MontyHall.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const MontyHall: React.FC = () => {
type="number"
id="noOfSimulations"
value={noOfSimulations}
min={1}
onChange={(e) => {
setNoOfSimulations(parseInt(e.target.value, 10));
setWins(0);
Expand Down

0 comments on commit 72031df

Please sign in to comment.