Skip to content

Commit

Permalink
feat(new): create new time entries using project or service ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Ephigenia committed Apr 17, 2019
1 parent 6b4ddee commit afa2830
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/mite-new.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ function getServiceChoices() {

function checkResults(options, query, type) {
let searchResults = options.filter(result => {
return result.name && (result.name.toUpperCase().indexOf(query.toUpperCase()) > -1);
return result.name &&
(
(result.name.toUpperCase().indexOf(query.toUpperCase()) > -1) ||
(result.value == query)
);
});
switch (searchResults.length) {
case 0:
Expand Down

0 comments on commit afa2830

Please sign in to comment.