Fix: If tier tag is not present show other tags. (#1254)

This commit is contained in:
Sachin Chaurasiya 2021-11-18 19:47:58 +05:30 committed by GitHub
parent 32b5361488
commit 9aa5eae398
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,11 +70,9 @@ const TableDataCard: FunctionComponent<Props> = ({
]; ];
const getAssetTags = () => { const getAssetTags = () => {
const assetTags = [ const assetTags = [...(tags as Array<string>)];
...(tags as Array<string>).filter((tag) => !tag.includes(tier)),
];
if (tier) { if (tier) {
assetTags.unshift(tier); assetTags.filter((tag) => !tag.includes(tier)).unshift(tier);
} }
return [...new Set(assetTags)]; return [...new Set(assetTags)];