mature tag first to display
This commit is contained in:
parent
c68d7edec5
commit
c7460a12ea
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,11 @@ export default function ClaimTags(props: Props) {
|
||||||
const numberOfTags = type === 'small' ? SLIM_TAGS : type === 'large' ? LARGE_TAGS : NORMAL_TAGS;
|
const numberOfTags = type === 'small' ? SLIM_TAGS : type === 'large' ? LARGE_TAGS : NORMAL_TAGS;
|
||||||
|
|
||||||
let tagsToDisplay = [];
|
let tagsToDisplay = [];
|
||||||
|
|
||||||
|
if (tags.includes('mature')) {
|
||||||
|
tagsToDisplay.push('mature');
|
||||||
|
}
|
||||||
|
|
||||||
for (var i = 0; tagsToDisplay.length < numberOfTags - 2; i++) {
|
for (var i = 0; tagsToDisplay.length < numberOfTags - 2; i++) {
|
||||||
const tag = followedTags[i];
|
const tag = followedTags[i];
|
||||||
if (!tag) {
|
if (!tag) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue