don't search if term is empty

This commit is contained in:
Sean Yesmunt 2020-12-14 14:42:00 -05:00
parent 540a527a61
commit 664e969730

View file

@ -72,6 +72,10 @@ export default function WunderBarSuggestions(props: Props) {
} }
function handleSelect(value) { function handleSelect(value) {
if (!value) {
return;
}
const includesLbryTvProd = value.includes(WEB_PROD_PREFIX); const includesLbryTvProd = value.includes(WEB_PROD_PREFIX);
const includesLbryTvLocal = value.includes(WEB_LOCAL_PREFIX); const includesLbryTvLocal = value.includes(WEB_LOCAL_PREFIX);
const includesLbryTvDev = value.includes(WEB_DEV_PREFIX); const includesLbryTvDev = value.includes(WEB_DEV_PREFIX);