aboutsummaryrefslogtreecommitdiff
path: root/public/javascripts/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/main.js')
-rw-r--r--public/javascripts/main.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/javascripts/main.js b/public/javascripts/main.js
index b20ce6b..18ec962 100644
--- a/public/javascripts/main.js
+++ b/public/javascripts/main.js
@@ -114,10 +114,11 @@ searchNode.addEventListener('submit', submitForm)
function submitForm (e) {
if (e) e.preventDefault()
- if (results !== null) {
+ if (results != null) {
const indexInResult = selectedResult === -1 ? 0 : selectedResult
selectedUser = users[results[indexInResult].index]
}
+ if (selectedUser == null) return
updateFavNode()