mature tag first to display

This commit is contained in:
jessop 2019-08-07 21:39:03 -04:00 committed by Jeremy Kauffman
parent c68d7edec5
commit c7460a12ea

View file

@ -18,6 +18,11 @@ export default function ClaimTags(props: Props) {
const numberOfTags = type === 'small' ? SLIM_TAGS : type === 'large' ? LARGE_TAGS : NORMAL_TAGS;
let tagsToDisplay = [];
if (tags.includes('mature')) {
tagsToDisplay.push('mature');
}
for (var i = 0; tagsToDisplay.length < numberOfTags - 2; i++) {
const tag = followedTags[i];
if (!tag) {