fix: unable to purchase arcanes

This commit is contained in:
Sainan 2024-12-22 16:15:05 +01:00
parent 987b05a334
commit cbdd1cd0a7

View File

@ -32,6 +32,7 @@ import { getRandomWeightedReward } from "@/src/services/rngService";
import { ISyndicateSacrifice, ISyndicateSacrificeResponse } from "../types/syndicateTypes"; import { ISyndicateSacrifice, ISyndicateSacrificeResponse } from "../types/syndicateTypes";
import { IEquipmentClient } from "../types/inventoryTypes/commonInventoryTypes"; import { IEquipmentClient } from "../types/inventoryTypes/commonInventoryTypes";
import { import {
ExportArcanes,
ExportBoosterPacks, ExportBoosterPacks,
ExportCustoms, ExportCustoms,
ExportFlavour, ExportFlavour,
@ -171,7 +172,7 @@ export const addItem = async (
} }
return { InventoryChanges }; return { InventoryChanges };
} }
if (typeName in ExportUpgrades) { if (typeName in ExportUpgrades || typeName in ExportArcanes) {
const inventory = await getInventory(accountId); const inventory = await getInventory(accountId);
const changes = [ const changes = [
{ {