Skip to content

Commit

Permalink
Plans: rename "question" to "issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-berman committed Sep 9, 2024
1 parent d187f44 commit 7b51ff3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/is.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const initialIS = (): InformationState => {
},
plans: [
{
"type": "question",
"type": "issue",
"content": WHQ("booking_room"),
"plan": [
findout(WHQ("booking_course")),
Expand Down
3 changes: 1 addition & 2 deletions src/rules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,7 @@ export const rules: Rules = {
if (action.type === "respond") {
const question = action.content as Question;
for (const planInfo of is.domain.plans) {
console.log(`objectsEqual(${planInfo.content.toString()}, ${question.toString()})=${objectsEqual(planInfo.content, question)}`)
if (planInfo.type == "question" && objectsEqual(planInfo.content, question)) {
if (planInfo.type == "issue" && objectsEqual(planInfo.content, question)) {
return () => ({
...is,
private: {
Expand Down

0 comments on commit 7b51ff3

Please sign in to comment.