Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions backend/modules/reviewing/gavel/Annotator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
)
}

Expand All @@ -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'),
)
}

Expand Down