From 5f3383456e42d2d542d7212301d3d665bb818447 Mon Sep 17 00:00:00 2001 From: Milo Date: Sat, 27 Dec 2025 17:33:06 +0100 Subject: [PATCH] hotfix --- src/utils/caseOpening.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/caseOpening.js b/src/utils/caseOpening.js index eb10790..feeaaa7 100644 --- a/src/utils/caseOpening.js +++ b/src/utils/caseOpening.js @@ -109,9 +109,11 @@ export async function drawCaseContent(caseType = "standard") { } export function drawCaseSkin(caseContent) { + let randomSelectedSkinIndex; + let randomSelectedSkinUuid; try { - const randomSelectedSkinIndex = Math.floor(Math.random() * (caseContent.length - 1)); - const randomSelectedSkinUuid = caseContent[randomSelectedSkinIndex].uuid; + randomSelectedSkinIndex = Math.floor(Math.random() * (caseContent.length - 1)); + randomSelectedSkinUuid = caseContent[randomSelectedSkinIndex].uuid; } catch (e) { console.log(e); throw new Error("Failed to draw a skin from the case content.");