Always trim claim id from category

This commit is contained in:
Chakrit Likitkhajorn 2018-10-10 22:02:20 +07:00
parent 2646ce4481
commit 9375c267b1

View file

@ -39,6 +39,10 @@ class DiscoverPage extends React.PureComponent<Props> {
return channelName; return channelName;
} }
trimClaimIdFromCategory(category: string) {
return category.split('#')[0];
}
continousFetch: ?IntervalID; continousFetch: ?IntervalID;
clearContinuousFetch() { clearContinuousFetch() {
@ -60,14 +64,14 @@ class DiscoverPage extends React.PureComponent<Props> {
featuredUris[category].length ? ( featuredUris[category].length ? (
<CategoryList <CategoryList
key={category} key={category}
category={category} category={this.trimClaimIdFromCategory(category)}
names={featuredUris[category]} names={featuredUris[category]}
categoryLink={this.getCategoryLinkPartByCategory(category)} categoryLink={this.getCategoryLinkPartByCategory(category)}
/> />
) : ( ) : (
<CategoryList <CategoryList
key={category} key={category}
category={category.split('#')[0]} category={this.trimClaimIdFromCategory(category)}
categoryLink={category} categoryLink={category}
/> />
) )