Skip to content

Commit 17abc35

Browse files
authored
Remove redundant nested blocks to clear warnings (errors in CI) (#40)
1 parent ccc32a4 commit 17abc35

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

frontend/src/App.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function App() {
3838
const [exercise, setExercise] = useState(0) // Tutorial Exercise
3939
const [showTutorial, setshowTutorial] = useState(false)
4040

41-
{/*Handling Tutorial Buttons */}
41+
// Handle tutorial buttons
4242
const goRight = () => {
4343
if(exercise<Tutorial.length - 1){
4444
setExercise(exercise + 1)
@@ -55,7 +55,7 @@ function App() {
5555
}
5656

5757

58-
{/*switch toggle for stdlib */}
58+
// Switch toggle for stdlib
5959
const onSwitchAction = () => {
6060
setstdlibOn(!stdlibOn);
6161
if(!stdlibOn){
@@ -87,7 +87,7 @@ const tutfunc = (TutorialCode) =>{
8787

8888
//inputbox toggle
8989
const handleInputBox = (e) =>{
90-
{inputOn ? setinputOn(false) : setinputOn(true)}
90+
inputOn ? setinputOn(false) : setinputOn(true)
9191
//setinputOn(true)
9292
}
9393
//POST request to Flask server

0 commit comments

Comments
 (0)