Skip to content

Commit

Permalink
feat: Added support for multiple active offers in subsidies context
Browse files Browse the repository at this point in the history
  • Loading branch information
IrfanUddinAhmad committed Aug 21, 2023
1 parent cd85cff commit 4098913
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/EnterpriseSubsidiesContext/data/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const useEnterpriseOffers = ({ enablePortalLearnerCreditManagementScreen,
let activeSubsidyFound = false;
if (results.length !== 0) {
let subsidy = results[0];
let offerData = []
let activeSubsidyData = {}
const offerData = [];
let activeSubsidyData = {};
for (let i = 0; i < results.length; i++) {
subsidy = results[i];
activeSubsidyFound = source === 'ecommerceApi'
Expand Down

0 comments on commit 4098913

Please sign in to comment.