Skip to content

Commit

Permalink
fix: show confirm switch if enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Feb 5, 2024
1 parent 93dc2ae commit 2e03c50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/layout/drawer/Extras.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,17 @@ const BaseInvasion = () => {
const hasConfirmed = useMemory((s) =>
s.available.pokestops.some((x) => x.startsWith('a')),
)
const confirmedEnabled = useStorage((s) => !!s.filters?.pokestops?.confirmed)
return (
<CollapsibleItem open={enabled}>
{hasConfirmed && (
{(confirmedEnabled || hasConfirmed) && (
<BoolToggle
inset
field="filters.pokestops.confirmed"
label="only_confirmed"
/>
)}
{hasConfirmed ? (
{confirmedEnabled || hasConfirmed ? (
<MultiSelectorList tabKey="invasions">
<SelectorListMemo
key="invasions"
Expand Down

0 comments on commit 2e03c50

Please sign in to comment.