fix(core): update

This commit is contained in:
Philipp Kunz 2020-02-15 21:25:49 +00:00
parent e7933cd7f4
commit dd5a009d0f
2 changed files with 3 additions and 6 deletions

View File

@ -1,7 +1,4 @@
import * as plugins from './lik.plugins';
// import modules
export * from './lik.fastmap';
export * from './lik.interestmap';
export * from './lik.limitedarray';
export * from './lik.looptracker';

View File

@ -106,8 +106,8 @@ export class InterestMap<DTInterestId, DTInterestFullfillment> {
*/
public findInterest(objectArg: DTInterestId): Interest<DTInterestId, DTInterestFullfillment> {
const comparableString = this.comparisonFunc(objectArg);
const interest = this.interestObjectMap.find(interest => {
return interest.comparisonString === comparableString;
const interest = this.interestObjectMap.find(interestArg => {
return interestArg.comparisonString === comparableString;
});
return interest; // if an interest is found, the interest is returned, otherwise interest is null
}