forked from jsnbuchanan/crowd-funder-for-time-pwa
Fixes to get the linter peachy
This commit is contained in:
@@ -150,6 +150,7 @@ import { db } from "../db";
|
||||
import { IIdentifier } from "@veramo/core";
|
||||
import { AppString } from "@/constants/app";
|
||||
import * as moment from "moment";
|
||||
import { AxiosError } from "axios";
|
||||
|
||||
@Options({
|
||||
components: {},
|
||||
@@ -208,8 +209,9 @@ export default class ProjectViewView extends Vue {
|
||||
// actually, axios throws an error so we never get here
|
||||
this.errorMessage = "That project does not exist.";
|
||||
}
|
||||
} catch (error: any) {
|
||||
if (error?.response?.status === 404) {
|
||||
} catch (error: unknown) {
|
||||
const serverError = error as AxiosError;
|
||||
if (serverError.response?.status === 404) {
|
||||
this.errorMessage = "That project does not exist.";
|
||||
} else {
|
||||
this.errorMessage =
|
||||
|
||||
Reference in New Issue
Block a user