Skip to content

Commit ee29ebc

Browse files
committed
Fix prompt binding
1 parent f48b87c commit ee29ebc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/RescriptVersions.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ let promptVersions = async () => {
3838
let options = rescriptVersions->Array.map(v => {P.value: v})
3939

4040
let initialValue =
41-
options->Array.find(o => o.value->String.startsWith("11."))
41+
options->Array.find(o => o.value->String.startsWith("11."))->Option.map(o => o.value)
4242

4343
let selectOptions =
4444
switch initialValue {

src/bindings/ClackPrompts.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ type selectOption = {
3838
type selectOptions = {
3939
message: string,
4040
options: array<selectOption>,
41-
initialValue?: selectOption,
41+
initialValue?: string,
4242
}
4343

4444
@module("@clack/prompts")

0 commit comments

Comments
 (0)