From c92b1a716922b5c274dda25bb5079d66edb44050 Mon Sep 17 00:00:00 2001 From: CeciliaAvila Date: Fri, 17 Mar 2023 11:52:45 -0300 Subject: [PATCH] Fix OnRecognizeInputAsync get Choice Options --- .../Input/ConfirmInput.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Input/ConfirmInput.cs b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Input/ConfirmInput.cs index 1d2530ce0..ce5058d91 100644 --- a/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Input/ConfirmInput.cs +++ b/libraries/Microsoft.Bot.Builder.Dialogs.Adaptive/Input/ConfirmInput.cs @@ -131,7 +131,8 @@ namespace Microsoft.Bot.Builder.Dialogs.Adaptive.Input { // First check whether the prompt was sent to the user with numbers - if it was we should recognize numbers var defaults = DefaultChoiceOptions[culture]; - var choiceOptions = ChoiceOptions?.GetValue(dc.State) ?? defaults.Item3; + var opts = await GetChoiceOptionsAsync(dc, defaults).ConfigureAwait(false); + var choiceOptions = opts ?? defaults.Item3; // This logic reflects the fact that IncludeNumbers is nullable and True is the default set in Inline style if (!choiceOptions.IncludeNumbers.HasValue || choiceOptions.IncludeNumbers.Value)