Skip to content

Commit 8fea27d

Browse files
authored
Fix typos in error messages
Fix some typos in voting error messages
1 parent 40752dd commit 8fea27d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

backend/modules/reviewing/gavel/Annotator.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ GavelAnnotatorSchema.methods.canVote = async function () {
9292

9393
if (!this.active) {
9494
return Promise.reject(
95-
new ForbiddenError('Cann,ot submit votes while disabled'),
95+
new ForbiddenError('Cannot submit votes while disabled'),
9696
)
9797
}
9898

9999
if (!this.onboarded) {
100100
return Promise.reject(
101-
new ForbiddenError('Cannot subm,it votes before being onboarded'),
101+
new ForbiddenError('Cannot submit votes before being onboarded'),
102102
)
103103
}
104104

@@ -111,7 +111,7 @@ GavelAnnotatorSchema.methods.canVote = async function () {
111111

112112
if (!EventHelpers.isVotingOpen(event, moment)) {
113113
return Promise.reject(
114-
new ForbiddenError('Cannot subm,it votes while voting is not open'),
114+
new ForbiddenError('Cannot submit votes while voting is not open'),
115115
)
116116
}
117117

0 commit comments

Comments
 (0)