Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Simplify open appeals check
  • Loading branch information
regalijan committed Oct 19, 2023
1 parent f632272 commit 894baed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routes/appeals.tsx
Expand Up @@ -44,7 +44,7 @@ export async function loader({ context }: { context: RequestContext }) {
await dataKV.list({
prefix: `appeal_${currentUser.id}`,
})
).keys.find((appeal) => (appeal.metadata as { [k: string]: any }).open)
).keys.length
),
can_toggle:
currentUser.permissions & (1 << 0) || currentUser.permissions & (1 << 11),
Expand Down

0 comments on commit 894baed

Please sign in to comment.