Skip to content

Commit

Permalink
Fix misleading warning in useAutocomplete.js
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Jan 11, 2020
1 parent a992b09 commit aec92d8
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 aec92d8

Please sign in to comment.