fix all the lint warnings

This commit is contained in:
2023-09-04 15:17:32 -06:00
parent a5e0c847b1
commit 4b9cbd0e9f
10 changed files with 91 additions and 39 deletions

View File

@@ -154,6 +154,7 @@ export default class HomeView extends Vue {
this.apiServer = settings?.apiServer || "";
this.activeDid = settings?.activeDid || "";
this.allContacts = await db.contacts.toArray();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (err: any) {
this.$notify(
{
@@ -261,16 +262,20 @@ export default class HomeView extends Vue {
-1,
);
}
// eslint-disable-next-line @typescript-eslint/no-explicit-any
} catch (error: any) {
console.log("Error with give caught:", error);
const message =
error.userMessage ||
error.response?.data?.error?.message ||
"There was an error recording the Give.";
this.$notify(
{
group: "alert",
type: "danger",
title: "Error",
text:
this.getGiveErrorMessage(error) ||
"There was an error recording the give.",
text: message,
},
-1,
);
@@ -286,9 +291,5 @@ export default class HomeView extends Vue {
getGiveCreationErrorMessage(result: CreateAndSubmitGiveResult) {
return (result as ErrorResult).error?.userMessage;
}
getGiveErrorMessage(error: any) {
return error.userMessage || error.response?.data?.error?.message;
}
}
</script>