Skip to content

Commit

Permalink
add braces
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jun 4, 2024
1 parent 4e83faf commit 088a42a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/assets/javascripts/exercise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ async function initExerciseShow(exerciseId: number, programmingLanguage: string,
}

function enableSubmitButton(): void {
if (!loggedIn) return;
if (!loggedIn) {
return;
}

const btn = document.getElementById("editor-process-btn") as HTMLButtonElement;
btn.disabled = false;
Expand All @@ -327,7 +329,9 @@ async function initExerciseShow(exerciseId: number, programmingLanguage: string,
}

function disableSubmitButton(): void {
if (!loggedIn) return;
if (!loggedIn) {
return;
}

const btn = document.getElementById("editor-process-btn") as HTMLButtonElement;
btn.disabled = true;
Expand Down

0 comments on commit 088a42a

Please sign in to comment.