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 authored and zamanafzal committed Aug 2, 2023
1 parent a50af65 commit 01be2a5
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 });
}
};

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

0 comments on commit 01be2a5

Please sign in to comment.