Skip to content

Commit

Permalink
fix: keep old search term on suggestion clicked
Browse files Browse the repository at this point in the history
  • Loading branch information
Crissium committed Nov 8, 2023
1 parent a0d8ae2 commit e0dc1f0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions client/src/DesktopApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ export default function DesktopApp() {

try {
newQuery = decodeURIComponent(newQuery);
setQuery(newQuery);
// setQuery(newQuery);
newQuery = encodeURIComponent(newQuery);
}
catch (error) {
setQuery(newQuery);
// setQuery(newQuery);
newQuery = encodeURIComponent(newQuery);
}

Expand Down
4 changes: 2 additions & 2 deletions client/src/MobileApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,11 +134,11 @@ export default function MobileApp() {

try {
newQuery = decodeURIComponent(newQuery);
setQuery(newQuery);
// setQuery(newQuery);
newQuery = encodeURIComponent(newQuery);
}
catch (error) {
setQuery(newQuery);
// setQuery(newQuery);
newQuery = encodeURIComponent(newQuery);
}

Expand Down

0 comments on commit e0dc1f0

Please sign in to comment.