mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
display filter only when necessary
This commit is contained in:
parent
3afdaa236f
commit
54334bb6fd
@ -58,11 +58,16 @@ export default function PublishedList({
|
||||
|
||||
return accountId ? (
|
||||
<div>
|
||||
<ServiceFilter
|
||||
serviceType={service}
|
||||
setServiceType={setServiceType}
|
||||
isSearch={false}
|
||||
/>
|
||||
{queryResult?.results?.length > 0 ? (
|
||||
<ServiceFilter
|
||||
serviceType={service}
|
||||
setServiceType={setServiceType}
|
||||
isSearch={false}
|
||||
/>
|
||||
) : (
|
||||
''
|
||||
)}
|
||||
|
||||
<AssetList
|
||||
assets={queryResult?.results}
|
||||
isLoading={isLoading}
|
||||
|
Loading…
Reference in New Issue
Block a user