From 4033eefa0d7d42935e576564fff07d30dce59d8d Mon Sep 17 00:00:00 2001 From: Annie Huang Date: Thu, 1 Aug 2024 19:41:55 +0800 Subject: [PATCH] remove redundant variable --- app/src/components/QuestIntro.vue | 6 +----- app/src/components/QuestMap.vue | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/components/QuestIntro.vue b/app/src/components/QuestIntro.vue index b23d741..efb5ab7 100644 --- a/app/src/components/QuestIntro.vue +++ b/app/src/components/QuestIntro.vue @@ -14,10 +14,6 @@ const props = defineProps({ type: String, required: true, }, - questCompleted: { - type: Boolean, - required: true, - }, questUnlocked: { type: Boolean, required: true, @@ -27,7 +23,7 @@ const emit = defineEmits(['closeIntro']) const showIntro = ref(true) // Controls whether the modal is visible or not const router = useRouter() const toast = useToast() -const { questTitle, questId, questCompleted, questUnlocked } = props +const { questTitle, questId, questUnlocked } = props const questInstruction = ref('') const questColor = ref('') const questTextColor = ref('') diff --git a/app/src/components/QuestMap.vue b/app/src/components/QuestMap.vue index 1d28744..bc85e52 100644 --- a/app/src/components/QuestMap.vue +++ b/app/src/components/QuestMap.vue @@ -218,7 +218,6 @@ const edgeStyle = computed(() => {