Skip to content

Commit

Permalink
clean up card # cap code + github actions test
Browse files Browse the repository at this point in the history
  • Loading branch information
zvoverman committed May 10, 2024
1 parent aeeba87 commit 5f23f64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ function App() {

const handleInputChange = (event: any) => {
const value = parseInt(event.target.value);
let result = value > 50 ? 50 : value; // while <input max="50">, greater numbers can be entered into the input -> ensure maximum of 50 to limit API calls
let result = Math.min(value, 50); // while <input max="50">, greater numbers can be entered into the input -> ensure maximum of 50 to limit API calls
console.log(result);
setLength(result);
};
Expand Down

0 comments on commit 5f23f64

Please sign in to comment.