diff --git a/backend/src/middleware/validation/validationMiddleware.js b/backend/src/middleware/validation/validationMiddleware.js index ff3992ead..1dbd36b72 100644 --- a/backend/src/middleware/validation/validationMiddleware.js +++ b/backend/src/middleware/validation/validationMiddleware.js @@ -78,10 +78,7 @@ const validateReport = async (resolve, root, args, context, info) => { } }) - if (existingReportedResource) - throw new Error( - `You have already reported the ${existingReportedResource.label}, please only report the same ${existingReportedResource.label} once`, - ) + if (existingReportedResource) throw new Error(`${existingReportedResource.label}`) return resolve(root, args, context, info) } diff --git a/webapp/components/Modal/ReportModal.vue b/webapp/components/Modal/ReportModal.vue index c33515a37..9b155e8b6 100644 --- a/webapp/components/Modal/ReportModal.vue +++ b/webapp/components/Modal/ReportModal.vue @@ -8,9 +8,8 @@
-