forked from jsnbuchanan/crowd-funder-for-time-pwa
fix the last of the type annotations (still have to fix no-explicit-any warnings)
This commit is contained in:
@@ -89,6 +89,7 @@ import { accessToken } from "@/libs/crypto";
|
||||
import {
|
||||
createAndSubmitGive,
|
||||
CreateAndSubmitGiveResult,
|
||||
ErrorResult,
|
||||
GiverInputInfo,
|
||||
GiverOutputInfo,
|
||||
} from "@/libs/endorserServer";
|
||||
@@ -96,7 +97,6 @@ import { Contact } from "@/db/tables/contacts";
|
||||
import QuickNav from "@/components/QuickNav.vue";
|
||||
import EntityIcon from "@/components/EntityIcon.vue";
|
||||
import { IIdentifier } from "@veramo/core";
|
||||
import { RawAxiosRequestHeaders } from "axios";
|
||||
|
||||
interface Notification {
|
||||
group: string;
|
||||
@@ -154,7 +154,7 @@ export default class HomeView extends Vue {
|
||||
this.apiServer = settings?.apiServer || "";
|
||||
this.activeDid = settings?.activeDid || "";
|
||||
this.allContacts = await db.contacts.toArray();
|
||||
} catch (err: unknown) {
|
||||
} catch (err: any) {
|
||||
this.$notify(
|
||||
{
|
||||
group: "alert",
|
||||
@@ -170,7 +170,7 @@ export default class HomeView extends Vue {
|
||||
}
|
||||
|
||||
openDialog(giver: GiverInputInfo) {
|
||||
this.$refs.customDialog.open(giver);
|
||||
(this.$refs.customDialog as GiftedDialog).open(giver);
|
||||
}
|
||||
|
||||
handleDialogResult(result: GiverOutputInfo) {
|
||||
@@ -284,7 +284,7 @@ export default class HomeView extends Vue {
|
||||
}
|
||||
|
||||
getGiveCreationErrorMessage(result: CreateAndSubmitGiveResult) {
|
||||
return result.error?.userMessage;
|
||||
return (result as ErrorResult).error?.userMessage;
|
||||
}
|
||||
|
||||
getGiveErrorMessage(error: any) {
|
||||
|
||||
Reference in New Issue
Block a user