diff --git a/src/api/CommentResource.ts b/src/api/CommentResource.ts index 7839ec735..807be3375 100644 --- a/src/api/CommentResource.ts +++ b/src/api/CommentResource.ts @@ -26,8 +26,8 @@ export class ApiCommentResource implements CommentResource { post( data: CommentRequest ): Promise { return axios.post( this.postEndpoint, data ).then( ( validationResult: AxiosResponse ) => { - if ( validationResult.data.status === 'OK' ) { - return Promise.reject(); + if ( validationResult.data.status !== 'OK' ) { + return Promise.reject( validationResult.data.message ); } return validationResult.data.message; } ); diff --git a/src/components/pages/donation_confirmation/DonationCommentPopUp.vue b/src/components/pages/donation_confirmation/DonationCommentPopUp.vue index 97bcbf9a5..bd6205456 100644 --- a/src/components/pages/donation_confirmation/DonationCommentPopUp.vue +++ b/src/components/pages/donation_confirmation/DonationCommentPopUp.vue @@ -16,6 +16,7 @@

{{ $t( 'donation_comment_popup_explanation' ) }}

+ @@ -45,6 +46,18 @@ {{ $t( 'donation_comment_popup_is_public' ) }} + +