Skip to content

Commit

Permalink
fix: fixed issue with product_line search
Browse files Browse the repository at this point in the history
  • Loading branch information
IrfanUddinAhmad committed Jul 19, 2023
1 parent 0e83c04 commit 6b26a9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/learner-credit-management/data/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,16 @@ const applySortByToOptions = (sortBy, options) => {
const applyFiltersToOptions = (filters, options) => {
const userSearchQuery = filters?.find(filter => filter.id === 'userEmail')?.value;
const courseTitleSearchQuery = filters?.find(filter => filter.id === 'courseTitle')?.value;
const courseProductLineSearchQuery = filters?.find(filter => filter.id === 'courseProductLine')?.value;
if (userSearchQuery) {
Object.assign(options, { search: userSearchQuery });
}
if (courseTitleSearchQuery) {
Object.assign(options, { searchCourse: courseTitleSearchQuery });
}
if (courseProductLineSearchQuery) {
Object.assign(options, { courseProductLine: courseProductLineSearchQuery });

Check warning on line 76 in src/components/learner-credit-management/data/hooks.js

View check run for this annotation

Codecov / codecov/patch

src/components/learner-credit-management/data/hooks.js#L76

Added line #L76 was not covered by tests
}
};

export const useOfferRedemptions = (enterpriseUUID, offerId) => {
Expand Down

0 comments on commit 6b26a9d

Please sign in to comment.