Always trim claim id from category
This commit is contained in:
parent
2646ce4481
commit
9375c267b1
1 changed files with 6 additions and 2 deletions
|
@ -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}
|
||||
/>
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue