1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

Incorrect title message on search assets page (#882)

* fixed search title

* change searchValue check
This commit is contained in:
Norbi 2021-09-30 10:18:24 +03:00 committed by GitHub
parent 6378b90a77
commit e15169219f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,9 @@ export default function PageGatsbySearch(props: PageProps): ReactElement {
<Page
title={
totalPagesNumber > MAXIMUM_NUMBER_OF_PAGES_WITH_RESULTS
? `>10000 results for ${searchValue}`
? `>10000 results ${
searchValue && searchValue !== ' ' ? `for ${searchValue}` : ''
}`
: title
}
description={