Using the new category to filter skins shown in the right panel
This commit is contained in:
@@ -29,7 +29,7 @@ export function Inventory({ side }: { side: "T" | "CT" }) {
|
|||||||
|
|
||||||
setGloves(new WeaponInfo(data[0]));
|
setGloves(new WeaponInfo(data[0]));
|
||||||
|
|
||||||
[success, data] = await get(`skin?team=${side}`);
|
[success, data] = await get(`skin?team=${side}&category=Weapons`);
|
||||||
|
|
||||||
setWeapons(data.map((item: any) => (new WeaponInfo(item))));
|
setWeapons(data.map((item: any) => (new WeaponInfo(item))));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user