Fixed bug when changing gloves
This commit is contained in:
@@ -31,6 +31,7 @@ export function SkinSelector({
|
||||
const setPaint = (v: Info) => {
|
||||
if (skin instanceof WeaponInfo) {
|
||||
const newSkin = new WeaponInfo(skin);
|
||||
newSkin.name = v.name;
|
||||
newSkin.paint_index = v.paint_index;
|
||||
newSkin.display = v.display === "" ? newSkin.display : newSkin.display.split("|")[0] + " | " + v.display;
|
||||
newSkin.min_float = v.min_float;
|
||||
@@ -48,7 +49,7 @@ export function SkinSelector({
|
||||
useEffect(() => {
|
||||
const fetchSkins = async () => {
|
||||
let response = await fetch(
|
||||
`${import.meta.env.VITE_BASE_API_URL}/index?weapon=${skin.weapon_id}&team=${side}${skin instanceof AgentInfo ? "&agent=true" : ""}`,
|
||||
`${import.meta.env.VITE_BASE_API_URL}/index?weapon=${skin.weapon_id}&team=${side}${skin instanceof AgentInfo ? "&agent=true" : ""}&gloves=${skin.name.includes("gloves") || skin.name.includes("wraps")}`,
|
||||
{ credentials: "include" },
|
||||
)
|
||||
.then((r) => r.json())
|
||||
|
||||
Reference in New Issue
Block a user