From 69ae5fe2ffa1343497ebab4acddaed140ea8b1f1 Mon Sep 17 00:00:00 2001 From: Trent Larson Date: Mon, 10 Jul 2023 19:19:53 -0600 Subject: [PATCH] fix syntax & unused code warnings --- src/views/ProjectViewView.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/views/ProjectViewView.vue b/src/views/ProjectViewView.vue index 8ceec6d..89419a2 100644 --- a/src/views/ProjectViewView.vue +++ b/src/views/ProjectViewView.vue @@ -281,7 +281,7 @@ export default class ProjectViewView extends Vue { const resp = await this.axios.get(url, { headers }); if (resp.status === 200) { // feel free to remove this; I haven't yet because it's helpful - console.log('Loaded project: ', resp.data); + console.log("Loaded project: ", resp.data); const startTime = resp.data.startTime; if (startTime != null) { const eventDate = new Date(startTime); @@ -320,7 +320,6 @@ export default class ProjectViewView extends Vue { } } catch (error: unknown) { console.error("Error retrieving gives to this project:", error); - const serverError = error as AxiosError; this.errorMessage = "Something went wrong retrieving gives to this project."; } @@ -338,9 +337,7 @@ export default class ProjectViewView extends Vue { } } catch (error: unknown) { console.error("Error retrieving gives by this project:", error); - const serverError = error as AxiosError; - this.errorMessage = - "Something went wrong retrieving gives by project."; + this.errorMessage = "Something went wrong retrieving gives by project."; } }