Skip to content

Commit 5083975

Browse files
committed
Fixed a bug preventing string[] from working with built-in prompts.
1 parent f327585 commit 5083975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Node/src/dialogs/Prompts.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,10 @@ export class Prompts extends dialog.Dialog {
234234
}
235235

236236
private sendPrompt(session: ses.Session, args: IPromptArgs, retry = false): void {
237-
if (retry && typeof args.retryPrompt === 'object') {
237+
if (retry && typeof args.retryPrompt === 'object' && !Array.isArray(args.retryPrompt)) {
238238
// Send native IMessage
239239
session.send(args.retryPrompt);
240-
} else if (typeof args.prompt === 'object') {
240+
} else if (typeof args.prompt === 'object' && !Array.isArray(args.prompt)) {
241241
// Send native IMessage
242242
session.send(args.prompt);
243243
} else {

0 commit comments

Comments
 (0)