Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
InfiniteStash committed Feb 17, 2024
1 parent 37f7387 commit c8ef04a
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions frontend/src/hooks/useEditFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ const useEditFilter = ({
const selectedVoted = fixedVoted ?? voted;
const selectedFavorite = fixedFavorite ?? favorite;
const selectedBot = fixedBot ?? params.bot;
const selectedUserSubmitted =
fixedUserSubmitted ?? userSubmitted;
const selectedUserSubmitted = fixedUserSubmitted ?? userSubmitted;

const enumToOptions = (e: Record<string, string>) =>
Object.keys(e).map((key) => (
Expand Down Expand Up @@ -243,17 +242,17 @@ const useEditFilter = ({
value={botOptions.find((opt) => opt.value === selectedBot)}
/>
</Form.Group>
<Form.Group controlId="include_user_submitted" className="text-center ms-3">
<Form.Group
controlId="include_user_submitted"
className="text-center ms-3"
>
<Form.Label>My Edits</Form.Label>
<Form.Check
className="mt-2"
type="switch"
defaultChecked={userSubmitted}
onChange={(e) =>
setParams(
"user_submitted",
e.currentTarget.checked.toString()
)
setParams("user_submitted", e.currentTarget.checked.toString())
}
/>
</Form.Group>
Expand Down

0 comments on commit c8ef04a

Please sign in to comment.