fixed type error

This commit is contained in:
Polaris 2024-08-24 11:52:55 -04:00
parent ff648ebf93
commit bac288298b

View File

@ -73,9 +73,7 @@ export async function getMapIcons() {
},
});
const unlockedMapIcons = checkIfMapIconIsUnlocked.map((item) =>
Number(item.itemId),
);
const unlockedMapIcons = checkIfMapIconIsUnlocked.map((item) => item.itemId);
const AllMapIcons = await artemis.cozynet_chuni_static_mapicon.findMany({
select: {
@ -92,7 +90,7 @@ export async function getMapIcons() {
const currentlyUnlockedMapIcons = Array.from(
new Map(
AllMapIcons.filter((matchingMapIconIds) =>
unlockedMapIcons.includes(matchingMapIconIds.id),
unlockedMapIcons.includes(Number(matchingMapIconIds.id)),
).map((unlockedMapIconIds) => [
unlockedMapIconIds.id,
unlockedMapIconIds,