Skip to content

Commit

Permalink
Merge pull request #110 from starknet-id/feat/hidden
Browse files Browse the repository at this point in the history
Feat/hidden
  • Loading branch information
fricoben authored Aug 2, 2023
2 parents 07b46f5 + 746358a commit 9b10ff8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
5 changes: 1 addition & 4 deletions pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -54,7 +52,6 @@ const Quests: NextPage = () => {
<div className={styles.questContainer}>
{quests ? (
quests
.filter((quest) => !quest.finished)
.map((quest) => {
return (
<Quest
Expand Down
3 changes: 2 additions & 1 deletion pages/quest/[questPage].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ const QuestPage: NextPage = () => {
rewards_nfts: [],
img_card: "",
title_card: "",
finished: false,
hidden: false,
disabled: false,
});
const [tasks, setTasks] = useState<UserTask[]>([]);
const [rewardsEnabled, setRewardsEnabled] = useState<boolean>(false);
Expand Down
3 changes: 2 additions & 1 deletion types/backTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ type QuestDocument = {
rewards_nfts: NFTItem[];
img_card: string;
title_card: string;
finished: boolean;
hidden: boolean;
disabled: boolean;
};

type NFTItem = {
Expand Down

1 comment on commit 9b10ff8

@vercel
Copy link

@vercel vercel bot commented on 9b10ff8 Aug 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.