From 21a10e05c260f2057a8afcde0b93eb96148030cd Mon Sep 17 00:00:00 2001 From: hujambo-dunia Date: Tue, 14 Jan 2025 03:12:47 -0500 Subject: [PATCH] User reporting: linting --- .../src/components/Collections/common/UserReportingError.vue | 5 ++++- client/src/components/Collections/common/reporting.ts | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/client/src/components/Collections/common/UserReportingError.vue b/client/src/components/Collections/common/UserReportingError.vue index f300ff07ffc0..944e5e20ffc8 100644 --- a/client/src/components/Collections/common/UserReportingError.vue +++ b/client/src/components/Collections/common/UserReportingError.vue @@ -4,6 +4,7 @@ import { faBug } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; import { BAlert, BButton } from "bootstrap-vue"; import { computed, ref } from "vue"; + import { submitReport } from "@/components/Collections/common/reporting"; import { useMarkdown } from "@/composables/markdown"; import localize from "@/utils/localization"; @@ -38,7 +39,9 @@ const fieldMessages = computed(() => ); async function handleSubmit(data?: any, email?: string | null) { - if (!data || !email) return; + if (!data || !email) { + return; + } const { messages, error } = await submitReport(data, message.value, email); diff --git a/client/src/components/Collections/common/reporting.ts b/client/src/components/Collections/common/reporting.ts index fa26dc6bb7b1..9ea253248827 100644 --- a/client/src/components/Collections/common/reporting.ts +++ b/client/src/components/Collections/common/reporting.ts @@ -1,6 +1,6 @@ import { GalaxyApi } from "@/api"; -import { errorMessageAsString } from "@/utils/simple-error"; import { type HDADetailed } from "@/api"; +import { errorMessageAsString } from "@/utils/simple-error"; export interface ReportableObject { id: string;