From e55cae949632b00ea06465a6cf7b3d28bffefda8 Mon Sep 17 00:00:00 2001 From: zeppi Date: Wed, 20 Oct 2021 12:47:58 -0400 Subject: [PATCH] fix top on search page --- ui/page/search/view.jsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/page/search/view.jsx b/ui/page/search/view.jsx index bdc6123df..d2f6e7e1d 100644 --- a/ui/page/search/view.jsx +++ b/ui/page/search/view.jsx @@ -29,10 +29,15 @@ export default function SearchPage(props: Props) { const uriFromQuery = `lbry://${modifiedUrlQuery}`; let streamName; + let channelName; let isValid = true; try { - ({ streamName } = parseURI(uriFromQuery)); - if (!streamName || !isNameValid(streamName)) { + ({ streamName, channelName } = parseURI(uriFromQuery)); + if ( + (!streamName && !channelName) || + (streamName && !isNameValid(streamName)) || + (channelName && !isNameValid(channelName)) + ) { isValid = false; } } catch (e) {