Explorar o código

fix search view loading (#8)

Klaudiusz Dembler %!s(int64=4) %!d(string=hai) anos
pai
achega
a1a6fef73d
Modificáronse 1 ficheiros con 0 adicións e 3 borrados
  1. 0 3
      src/views/SearchView/SearchView.tsx

+ 0 - 3
src/views/SearchView/SearchView.tsx

@@ -38,9 +38,6 @@ const SearchView: React.FC<SearchViewProps> = ({ search = '' }) => {
   if (!loading && !data?.search) {
     throw new Error(`There was a problem with your search...`)
   }
-  if (loading || !data) {
-    return <p>Loading...</p>
-  }
 
   if (!loading && channels.length === 0 && videos.length === 0) {
     return <EmptyFallback />