This commit is contained in:
Sainan 2024-07-03 08:06:15 +02:00
parent a16aaf6b2d
commit 35208d3f07

View File

@ -119,7 +119,7 @@ const getRotations = (rotationCount: number): number[] => {
}; };
const getRandomRewardByChance = (pool: IReward[]): IRngResult | undefined => { const getRandomRewardByChance = (pool: IReward[]): IRngResult | undefined => {
return getRandomReward(pool as IRngResult[]); // As of TS 5.5, we will be able to handle this with .filter instead of 'as'. return getRandomReward(pool as IRngResult[]);
}; };
const creditBundles: Record<string, number> = { const creditBundles: Record<string, number> = {