From bac288298bd2af036d2a0eb63ca38a919de3ea05 Mon Sep 17 00:00:00 2001 From: Polaris Date: Sat, 24 Aug 2024 11:52:55 -0400 Subject: [PATCH] fixed type error --- components/(customization)/mapiconcustomization/actions.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/components/(customization)/mapiconcustomization/actions.ts b/components/(customization)/mapiconcustomization/actions.ts index b3bcb9f..022f654 100644 --- a/components/(customization)/mapiconcustomization/actions.ts +++ b/components/(customization)/mapiconcustomization/actions.ts @@ -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,