From 8fea27d64ca31783caa8cf73981fa24fec18376c Mon Sep 17 00:00:00 2001 From: Joa Riski Date: Sun, 12 Nov 2023 12:19:25 +0200 Subject: [PATCH] Fix typos in error messages Fix some typos in voting error messages --- backend/modules/reviewing/gavel/Annotator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/modules/reviewing/gavel/Annotator.js b/backend/modules/reviewing/gavel/Annotator.js index e0ef462c9..019f27540 100644 --- a/backend/modules/reviewing/gavel/Annotator.js +++ b/backend/modules/reviewing/gavel/Annotator.js @@ -92,13 +92,13 @@ GavelAnnotatorSchema.methods.canVote = async function () { if (!this.active) { return Promise.reject( - new ForbiddenError('Cann,ot submit votes while disabled'), + new ForbiddenError('Cannot submit votes while disabled'), ) } if (!this.onboarded) { return Promise.reject( - new ForbiddenError('Cannot subm,it votes before being onboarded'), + new ForbiddenError('Cannot submit votes before being onboarded'), ) } @@ -111,7 +111,7 @@ GavelAnnotatorSchema.methods.canVote = async function () { if (!EventHelpers.isVotingOpen(event, moment)) { return Promise.reject( - new ForbiddenError('Cannot subm,it votes while voting is not open'), + new ForbiddenError('Cannot submit votes while voting is not open'), ) }