fix: remove unnecessary operator and imports

This commit is contained in:
neilchen0812 committed 2026-10-09 01:25:38 +10:30
1 parent 6a097c02ed
commit 5e8d3f275d
3 files changed
+2 -6

No files matched your search

+1 -2
View File
@@ -5,7 +5,6 @@ import { useToast } from 'vue-toastification'
import { ref, defineProps, onMounted } from 'vue'
import MarkdownText from './MarkdownText.vue'
import { trpc } from '../utils/trpc'
import { SUPPORTED_LOCALES } from '../../../packages/constants'
const { t, locale } = useI18n()
@@ -91,7 +90,7 @@ onMounted(async () => {
target="_blank"
@click="handleQuests(questId)"
:style="{ backgroundColor: questColor, color: questTextColor }"
class="inline-flex justify-center rounded-lg text-base font-black py-3 mt-5 w-full text-lg"
class="inline-flex justify-center rounded-lg text-base font-black py-3 mt-5 w-full"
>
{{ t('quest.start') }}
</a>
+1 -3
View File
@@ -2,7 +2,6 @@
import { useI18n } from 'vue-i18n'
import { ref, onMounted, watch, computed } from 'vue'
import { useToast } from 'vue-toastification'
import { SUPPORTED_LOCALES } from '../../../packages/constants'
import { DAG } from '../../../packages/utils'
import { trpc } from '../utils/trpc'
import useUserProfile from '../store/userProfile'
@@ -121,8 +120,7 @@ onMounted(async () => {
watch(() => store.progress, computeGraphData, { deep: true })
watch(locale, () => {
opened.value = null
// eslint-disable-next-line no-void
void computeGraphData()
computeGraphData()
})
const curvedPath = computed(() => {
-1
View File
@@ -3,7 +3,6 @@ import { useI18n } from 'vue-i18n'
import { useToast } from 'vue-toastification'
import { computed } from 'vue'
import { useSession } from '../../store/session'
import { SUPPORTED_LOCALES } from '../../../../packages/constants'
const { t, locale } = useI18n()