fix(core): update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import * as plugins from './smartinteract.plugins';
|
||||
import { IAnswerObject } from './smartinteract.classes.smartinteract';
|
||||
import * as plugins from './smartinteract.plugins.js';
|
||||
import { type IAnswerObject } from './smartinteract.classes.smartinteract.js';
|
||||
|
||||
/**
|
||||
* class AnswerBucket holds answers
|
||||
@@ -18,7 +18,7 @@ export class AnswerBucket {
|
||||
* gets an answer for a specific name
|
||||
*/
|
||||
public getAnswerFor(nameArg: string) {
|
||||
const answer = this.answerMap.find((answerArg) => {
|
||||
const answer = this.answerMap.findSync((answerArg) => {
|
||||
return answerArg.name === nameArg;
|
||||
});
|
||||
return answer ? answer.value : null;
|
||||
|
||||
Reference in New Issue
Block a user