forked from trent_larson/crowd-funder-for-time-pwa
Compare commits
1 Commits
increment-
...
project-gi
| Author | SHA1 | Date | |
|---|---|---|---|
| 69ae5fe2ff |
@@ -281,7 +281,7 @@ export default class ProjectViewView extends Vue {
|
|||||||
const resp = await this.axios.get(url, { headers });
|
const resp = await this.axios.get(url, { headers });
|
||||||
if (resp.status === 200) {
|
if (resp.status === 200) {
|
||||||
// feel free to remove this; I haven't yet because it's helpful
|
// 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;
|
const startTime = resp.data.startTime;
|
||||||
if (startTime != null) {
|
if (startTime != null) {
|
||||||
const eventDate = new Date(startTime);
|
const eventDate = new Date(startTime);
|
||||||
@@ -320,7 +320,6 @@ export default class ProjectViewView extends Vue {
|
|||||||
}
|
}
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
console.error("Error retrieving gives to this project:", error);
|
console.error("Error retrieving gives to this project:", error);
|
||||||
const serverError = error as AxiosError;
|
|
||||||
this.errorMessage =
|
this.errorMessage =
|
||||||
"Something went wrong retrieving gives to this project.";
|
"Something went wrong retrieving gives to this project.";
|
||||||
}
|
}
|
||||||
@@ -338,9 +337,7 @@ export default class ProjectViewView extends Vue {
|
|||||||
}
|
}
|
||||||
} catch (error: unknown) {
|
} catch (error: unknown) {
|
||||||
console.error("Error retrieving gives by this project:", error);
|
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.";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user