Skip to content

Commit da9e66e

Browse files
committed
Minor error on string verification
1 parent ce90090 commit da9e66e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function initiate_search() {
5252
let values = JQ_REPO_FIELD.val().split('/').filter(Boolean);
5353
let len = values.length;
5454

55-
if (len < 1) {
55+
if (len < 2) {
5656
getElementById_$(UF_ID_MSG).html('Please enter a valid query: it should contain two strings separated by a "/"');
5757
return; // abort
5858
}
@@ -94,7 +94,7 @@ JQ_TOKEN_SAVE.click(event => {
9494
function drawAddTokenBtn(accessToken) {
9595
let verb = 'Add';
9696
if (accessToken) {
97-
verb = 'Edit'
97+
verb = 'Edit';
9898
JQ_TOKEN_FIELD.val(accessToken);
9999
}
100100
JQ_TOKEN_BTN.html('<img src="assets/settings-icon.png" alt="settings" />'

0 commit comments

Comments
 (0)