forked from jsnbuchanan/crowd-funder-for-time-pwa
fix linting
This commit is contained in:
@@ -52,7 +52,7 @@ export default class ClaimAddRawView extends Vue {
|
||||
$route!: RouteLocationNormalizedLoaded;
|
||||
$router!: Router;
|
||||
axios!: AxiosInstance;
|
||||
|
||||
|
||||
accountIdentityStr: string = "null";
|
||||
activeDid = "";
|
||||
apiServer = "";
|
||||
@@ -87,7 +87,7 @@ export default class ClaimAddRawView extends Vue {
|
||||
private async loadClaimData() {
|
||||
// Try loading from direct claim parameter
|
||||
if (await this.loadClaimFromQueryParam()) return;
|
||||
|
||||
|
||||
// Try loading from claim JWT ID
|
||||
await this.loadClaimFromJwtId();
|
||||
}
|
||||
@@ -121,9 +121,9 @@ export default class ClaimAddRawView extends Vue {
|
||||
? "/api/claim/byHandle/"
|
||||
: "/api/claim/";
|
||||
const url = this.apiServer + urlPath + encodeURIComponent(claimJwtId);
|
||||
|
||||
|
||||
try {
|
||||
const response = await this.fetchClaimData(url, claimJwtId);
|
||||
const response = await this.fetchClaimData(url);
|
||||
this.formatClaimResponse(response, claimJwtId);
|
||||
} catch (error: unknown) {
|
||||
this.handleClaimError(error);
|
||||
@@ -133,7 +133,7 @@ export default class ClaimAddRawView extends Vue {
|
||||
/**
|
||||
* Fetch claim data from API
|
||||
*/
|
||||
private async fetchClaimData(url: string, claimJwtId: string) {
|
||||
private async fetchClaimData(url: string) {
|
||||
const headers = await serverUtil.getHeaders(this.activeDid);
|
||||
return await this.axios.get(url, { headers });
|
||||
}
|
||||
@@ -169,7 +169,7 @@ export default class ClaimAddRawView extends Vue {
|
||||
{
|
||||
group: "alert",
|
||||
type: "danger",
|
||||
title: "Error",
|
||||
title: "Error",
|
||||
text: "Got an error retrieving claim data.",
|
||||
},
|
||||
3000,
|
||||
|
||||
Reference in New Issue
Block a user