diff --git a/src/utils/permissions.ts b/src/utils/permissions.ts index 716a258..b981883 100644 --- a/src/utils/permissions.ts +++ b/src/utils/permissions.ts @@ -9,7 +9,7 @@ import { getReputation } from "./reputation"; interface CanSubmitResult { canSubmit: boolean; - reason?: string; + reason: string; } async function lowDownvotes(userID: HashedUserID): Promise { @@ -32,7 +32,8 @@ export async function canSubmit(userID: HashedUserID, category: Category): Promi }; default: return { - canSubmit: true + canSubmit: true, + reason: "" }; } } \ No newline at end of file