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;
|
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}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue