Skip to content

Commit

Permalink
fix(prompt): fix default value of select prompt (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed Dec 9, 2020
1 parent 63351d0 commit 3a97617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prompt/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export interface SelectSettings extends GenericListSettings<string, string> {
export class Select extends GenericList<string, string, SelectSettings> {
protected selected: number = typeof this.settings.default !== "undefined"
? this.settings.options.findIndex((item) =>
item.name === this.settings.default
item.value === this.settings.default
) || 0
: 0;

Expand Down

0 comments on commit 3a97617

Please sign in to comment.