Explorar o código

bag label for empty channels

Joystream Stats %!s(int64=2) %!d(string=hai) anos
pai
achega
a460197fc9
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      src/components/Distribution/Bag.tsx

+ 3 - 1
src/components/Distribution/Bag.tsx

@@ -18,7 +18,9 @@ const Bag = (props: { id: number; operator: Operator; objects: Object[] }) => {
   }, [endpoint, objects]);
   const channelId = id.split(":")[2];
   const title = objects
-    ? responseTime
+    ? !objects.length
+      ? `channel is empty`
+      : responseTime
       ? responseTime + `ms`
       : `sent request`
     : `fetching list`;