Skip to content

Commit af443b4

Browse files
committed
fix: adds small client-side error handling fix
1 parent bba3d12 commit af443b4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

site/js/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ function processRating(e) {
6464
})
6565
.catch(e => {
6666
console.log(`error: ${e}`);
67-
alert(e);
6867
});
6968
}
7069

@@ -119,7 +118,8 @@ function processForm(e) {
119118
})
120119
.catch(e => {
121120
console.log(`error: ${e}`);
122-
alert(e);
121+
const botMessage = document.querySelector(".message-actual")
122+
botMessage.innerHTML = `Whoops! Something went wrong. Error: ${e}`;
123123
});
124124
return true;
125125
}

0 commit comments

Comments
 (0)