From aec92d8bd3dccadd07f934cf33584344581f08d7 Mon Sep 17 00:00:00 2001 From: embeddedt <42941056+embeddedt@users.noreply.github.com> Date: Sat, 11 Jan 2020 15:57:08 -0500 Subject: [PATCH] Fix misleading warning in useAutocomplete.js --- packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js index de0bfd2922e286..f3ba2747b2a7db 100644 --- a/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js +++ b/packages/material-ui-lab/src/useAutocomplete/useAutocomplete.js @@ -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'), ); }