Skip to content

Commit

Permalink
hide error on submitting
Browse files Browse the repository at this point in the history
  • Loading branch information
abhishek-roy-obd committed Aug 6, 2024
1 parent a0f9b5c commit 52cf4bc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions static/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,13 @@ submitButton.addEventListener('click', async () => {

isSubmitting = true;


let actor_1 = selections['actor_1'];
let actor_2 = selections['actor_2'];

// hide the error message
errorSection.style.display = 'none';

if (actor_1 && actor_2) {
try {
spinner.classList.remove('d-none');
Expand Down

0 comments on commit 52cf4bc

Please sign in to comment.