fix linting

This commit is contained in:
2025-03-10 09:10:30 -06:00
parent 8f4d26e0bc
commit 22da1106a8
6 changed files with 88 additions and 89 deletions

View File

@@ -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,