|
@ -313,8 +313,8 @@ export default class HomeView extends Vue { |
|
|
hours, |
|
|
hours, |
|
|
); |
|
|
); |
|
|
|
|
|
|
|
|
if (isGiveCreationError(result)) { |
|
|
if (this.isGiveCreationError(result)) { |
|
|
const errorMessage = getGiveCreationErrorMessage(result); |
|
|
const errorMessage = this.getGiveCreationErrorMessage(result); |
|
|
console.log("Error with give result:", result); |
|
|
console.log("Error with give result:", result); |
|
|
this.setAlert( |
|
|
this.setAlert( |
|
|
"Error", |
|
|
"Error", |
|
@ -327,7 +327,8 @@ export default class HomeView extends Vue { |
|
|
console.log("Error with give caught:", error); |
|
|
console.log("Error with give caught:", error); |
|
|
this.setAlert( |
|
|
this.setAlert( |
|
|
"Error", |
|
|
"Error", |
|
|
getGiveErrorMessage(error) || "There was an error recording the give.", |
|
|
this.getGiveErrorMessage(error) || |
|
|
|
|
|
"There was an error recording the give.", |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|