Skip to content

Commit

Permalink
[Autocomplete] Fix misleading warning (#19177)
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt authored and oliviertassinari committed Jan 11, 2020
1 parent a992b09 commit 61b0b34
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default function useAutocomplete(props) {
`The component expect a string but received ${typeof optionLabel}.`,
`For the input option: ${JSON.stringify(
newValue,
)}, \`getOptionLabel\` returns: ${newInputValue}.`,
)}, \`getOptionLabel\` returns: ${optionLabel}.`,
].join('\n'),
);
}
Expand Down

0 comments on commit 61b0b34

Please sign in to comment.