Skip to content

Commit

Permalink
removed some logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jenbeckett committed Oct 17, 2023
1 parent 8493d68 commit 71cc9c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/src/store/modules/ccfriApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ function getProgramYear(selectedGuid, programYearList){

function getPreviousCareType(currentRFI, careType, previousProgramYearId, getters, rootState) {
//TODO: review this.
console.log('CURRENTRFI', currentRFI);
//console.log('CURRENTRFI', currentRFI);
// Lookup previous years approved parent fees
if ((currentRFI.existingFeesCorrect == 100000000 && currentRFI.previousCcfriId) || (rootState.navBar.changeType == 'mtfi' && rootState.app.isRenewal ) ) {
console.log('if');
//console.log('if');
let previousRFI = getters.getPreviousApprovedFeesByFacilityId({facilityId: currentRFI.facilityId, previousProgramYearId: previousProgramYearId});
return previousRFI.childCareTypes.find(item =>{ return (item.childCareCategoryId == careType.childCareCategoryId && item.programYearId == previousProgramYearId); });
}
//MTFI can be done on a new PCF or renewal - so it may not have previous CCFRI. If no previous CCFRI, base median off current year.
//keep as elif because PCF RFI may call this but not satisfy the above if statement
else if(rootState.navBar.changeType == 'mtfi' && !rootState.app.isRenewal ){
console.log('elif');
//console.log('elif');
return currentRFI.childCareTypes.find(item => { return (item.childCareCategoryId == careType.childCareCategoryId && item.programYearId == rootState.application.programYearId); });
}
//else - this will return undefined and RFI will be not be triggered
Expand Down Expand Up @@ -210,7 +210,7 @@ export default {

try {
let res = await ApiService.apiAxios.patch('/api/application/parentfee/', payload);
console.log('the res is:' , res);
//console.log('the res is:' , res);
return res;
} catch (error) {
console.log(error);
Expand Down

0 comments on commit 71cc9c1

Please sign in to comment.