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