diff --git a/web/src/components/quest-table.tsx b/web/src/components/quest-table.tsx index 9964a33..0915bec 100644 --- a/web/src/components/quest-table.tsx +++ b/web/src/components/quest-table.tsx @@ -213,21 +213,6 @@ function QuestTableContent({ quests }: { quests: QuestListItem[] }) { export function QuestTable({ quests, isLoading, onRefresh }: QuestTableProps) { const [isRefreshing, setIsRefreshing] = React.useState(false); - const previousQuestsRef = React.useRef(quests); - const [displayQuests, setDisplayQuests] = React.useState(quests); - - React.useEffect(() => { - if (isLoading) { - setIsRefreshing(true); - } else { - setIsRefreshing(false); - previousQuestsRef.current = quests; - if (quests.length !== previousQuestsRef.current.length || - JSON.stringify(quests) !== JSON.stringify(previousQuestsRef.current)) { - setDisplayQuests(quests); - } - } - }, [isLoading, quests]); const handleRefresh = async () => { setIsRefreshing(true); @@ -286,7 +271,7 @@ export function QuestTable({ quests, isLoading, onRefresh }: QuestTableProps) { {isLoading ? ( ) : ( - + )}