From ca3591c7b7a332e3cab6fcb4c2ae3efa6b7ca27f Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Sun, 9 Feb 2020 21:14:41 +0200 Subject: [PATCH] fix --- src/components/trends/getDetailsId.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/trends/getDetailsId.ts b/src/components/trends/getDetailsId.ts index c3ea9ba7..09d3aa0d 100644 --- a/src/components/trends/getDetailsId.ts +++ b/src/components/trends/getDetailsId.ts @@ -3,7 +3,10 @@ import { SPECIAL_SUPPORT_GEM } from '../filters/create' import { ACCESSORY, ARMOUR, WEAPON } from '../parser/meta' export function isValuableBasetype (item: ParsedItem): boolean { - if (!item.computed.category) return false + if ( + !(item.rarity === ItemRarity.Normal || item.rarity === ItemRarity.Magic || item.rarity === ItemRarity.Rare) || + !item.computed.category + ) return false return ( ACCESSORY.has(item.computed.category) ||