Skip to content

Commit

Permalink
fix(openchallenges): fix bug in search bar on challenge search page (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rrchai authored May 17, 2024
1 parent c7bcd3a commit b1f66e4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,11 @@ export class ChallengeSearchComponent
searchType: 'challenges' | ChallengeSearchDropdown,
searched: string
): void {
this.loadedPages[searchType].clear();
this.dropdownFilters[searchType].options = [];

if (searchType === 'challenges') {
this.challengeSearchTerms.next(searched);
} else {
this.loadedPages[searchType].clear();
this.dropdownFilters[searchType].options = [];
this.challengeSearchDataService.setSearchQuery(searchType, {
searchTerms: searched,
});
Expand Down

0 comments on commit b1f66e4

Please sign in to comment.