Skip to content

Commit

Permalink
User reporting: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hujambo-dunia committed Jan 14, 2025
1 parent 762ccb4 commit 21a10e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Collections/common/reporting.ts
Original file line number Diff line number Diff line change
@@ -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;
Expand Down

0 comments on commit 21a10e0

Please sign in to comment.