Skip to content

Commit

Permalink
Update system name typeahead to start working after 1 character
Browse files Browse the repository at this point in the history
Recently updated the API to no longer require at least 3 characters as performance seems fine.
  • Loading branch information
iaincollins committed Oct 28, 2024
1 parent fe85b2a commit 84e55a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/tab-options/commodities-options.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default ({ disabled = false }) => {
}

async function findSystemsByName (systemName) {
if (systemName.length < 3) return []
if (systemName.length < 1) return []
const res = await fetch(`${API_BASE_URL}/v1/search/system/name/${systemName}/`)
return await res.json()
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ardent-www",
"version": "0.93.1",
"version": "0.94.0",
"description": "Ardent Industry",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 84e55a6

Please sign in to comment.