From 9375c267b1e81e40f2f0cbdc32eac603cc521ccb Mon Sep 17 00:00:00 2001 From: Chakrit Likitkhajorn Date: Wed, 10 Oct 2018 22:02:20 +0700 Subject: [PATCH] Always trim claim id from category --- src/renderer/page/discover/view.jsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/renderer/page/discover/view.jsx b/src/renderer/page/discover/view.jsx index c36df6b3f..0c1e98358 100644 --- a/src/renderer/page/discover/view.jsx +++ b/src/renderer/page/discover/view.jsx @@ -39,6 +39,10 @@ class DiscoverPage extends React.PureComponent { return channelName; } + trimClaimIdFromCategory(category: string) { + return category.split('#')[0]; + } + continousFetch: ?IntervalID; clearContinuousFetch() { @@ -60,14 +64,14 @@ class DiscoverPage extends React.PureComponent { featuredUris[category].length ? ( ) : ( )