1
0
mirror of https://github.com/simple-icons/simple-icons.git synced 2024-11-16 00:59:07 +02:00

Fix aliases prompt (#7883)

This commit is contained in:
LitoMore 2022-09-30 22:17:40 +08:00 committed by GitHub
parent bee36009dc
commit d224a349fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -159,7 +159,7 @@ const dataPrompt = [
suffix: ' (separate with commas)',
validate: (text) => Boolean(text),
transformer: aliasesTransformer,
when: (answers) => answers?.aliasesTypes.includes(x.value),
when: (answers) => answers?.aliasesTypes?.includes(x.value),
})),
{
type: 'confirm',