Fix : Getting redundant tier tags on recently viewed cards on my data page. (#1231)

This commit is contained in:
Sachin Chaurasiya 2021-11-18 13:24:56 +05:30 committed by GitHub
parent 63089bab56
commit 689490692b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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