fix(ui): prompt confirm checked

This commit is contained in:
Guillaume Chau
2018-05-12 04:50:18 +02:00
parent b6114d49c7
commit 3426736e8a

View File

@@ -227,6 +227,7 @@ async function getDefaultValue (prompt) {
)
}
} else if (prompt.type === 'confirm') {
if (prompt.raw.checked) return true
return defaultValue || false
}
return defaultValue