Skip to content

Commit

Permalink
fix(kb): Fix in Faq and Menu dialogs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Dec 18, 2018
1 parent 238c0bf commit 6ba8c09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion packages/kb.gbapp/dialogs/FaqDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export class FaqDialog extends IGBDialog {
});

await step.context.sendActivity(Messages[locale].see_faq); // TODO: RND messages.
await step.endDialog();
return await step.next();
}
}
Expand Down
8 changes: 4 additions & 4 deletions packages/kb.gbapp/dialogs/MenuDialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class MenuDialog extends IGBDialog {

// Adds to bot a perception of a new subject.

const user = await min.userProfile.get(context, {});
const user = await min.userProfile.get(step.context, {});
user.subjects.push(subject);
rootSubjectId = subject.subjectId;

Expand All @@ -94,7 +94,7 @@ export class MenuDialog extends IGBDialog {
});
}
} else {
const user = await min.userProfile.get(context, {});
const user = await min.userProfile.get(step.context, {});
user.subjects = [];

await step.context.sendActivity(Messages[locale].here_is_subjects); // TODO: Handle rnd.
Expand Down Expand Up @@ -139,7 +139,7 @@ export class MenuDialog extends IGBDialog {
});

if (attachments.length === 0) {
const user = await min.userProfile.get(context, {});
const user = await min.userProfile.get(step.context, {});

if (user.subjects && user.subjects.length > 0) {
await step.context.sendActivity(
Expand All @@ -155,7 +155,7 @@ export class MenuDialog extends IGBDialog {
await step.context.sendActivity(msg);
}

const user = await min.userProfile.get(context, {});
const user = await min.userProfile.get(step.context, {});
user.isAsking = true;
return await step.next();
},
Expand Down

0 comments on commit 6ba8c09

Please sign in to comment.