diff --git a/pages/index.tsx b/pages/index.tsx
index 06b03fd4..ae4f7e40 100644
--- a/pages/index.tsx
+++ b/pages/index.tsx
@@ -23,9 +23,7 @@ const Quests: NextPage = () => {
.then((data: QuestDocument[] | QueryError) => {
if (!(data as QueryError).error) {
setQuests(data as QuestDocument[]);
- const activeQuests = (data as QuestDocument[]).filter(
- (quest) => !quest.finished
- );
+ const activeQuests = (data as QuestDocument[]);
setFeaturedQuest(
activeQuests.length >= 1
? activeQuests[activeQuests.length - 1]
@@ -54,7 +52,6 @@ const Quests: NextPage = () => {
{quests ? (
quests
- .filter((quest) => !quest.finished)
.map((quest) => {
return (
{
rewards_nfts: [],
img_card: "",
title_card: "",
- finished: false,
+ hidden: false,
+ disabled: false,
});
const [tasks, setTasks] = useState([]);
const [rewardsEnabled, setRewardsEnabled] = useState(false);
diff --git a/types/backTypes.d.ts b/types/backTypes.d.ts
index 8fa60de7..f60ce86e 100644
--- a/types/backTypes.d.ts
+++ b/types/backTypes.d.ts
@@ -13,7 +13,8 @@ type QuestDocument = {
rewards_nfts: NFTItem[];
img_card: string;
title_card: string;
- finished: boolean;
+ hidden: boolean;
+ disabled: boolean;
};
type NFTItem = {