chore: missionReward.countedItems are never StoreItems, simplify this
All checks were successful
Build / build (18) (push) Successful in 37s
Build / build (22) (push) Successful in 33s
Build / build (20) (pull_request) Successful in 1m9s
Build / build (20) (push) Successful in 1m8s
Build / build (18) (pull_request) Successful in 1m4s
Build / build (22) (pull_request) Successful in 33s

This commit is contained in:
Sainan 2025-02-25 23:19:31 +01:00
parent 80df6ff20e
commit 33545acc0d

View File

@ -359,9 +359,7 @@ export const addFixedLevelRewards = (
if (rewards.countedItems) {
for (const item of rewards.countedItems) {
MissionRewards.push({
StoreItem: item.ItemType.includes(`/StoreItems/`)
? item.ItemType
: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
StoreItem: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`,
ItemCount: item.ItemCount
});
}