From ea31a5672bd2b1262142f66a53ee0be801a4c2c3 Mon Sep 17 00:00:00 2001 From: Anton Tranelis Date: Thu, 28 Mar 2024 15:48:54 +0100 Subject: [PATCH] fixed gaming --- src/Components/Gaming/Quests.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Components/Gaming/Quests.tsx b/src/Components/Gaming/Quests.tsx index af6cadc0..b1ebb7a7 100644 --- a/src/Components/Gaming/Quests.tsx +++ b/src/Components/Gaming/Quests.tsx @@ -2,6 +2,7 @@ import * as React from 'react' import { useQuestsOpen, useSetQuestOpen } from './hooks/useQuests'; import { useAuth } from '../Auth'; import { useEffect } from 'react'; +import { useItems } from '../Map/hooks/useItems'; export function Quests() { @@ -13,6 +14,8 @@ export function Quests() { setQuestsOpen(false); }, []) + const items = useItems(); + const profile = items.find(i => i.user_created.id === user?.id && i.type =="user") return ( <>{questsOpen ? @@ -30,8 +33,8 @@ export function Quests() { { /** */ }