From 2e03c500f3e6428d925dad301221c734f397171c Mon Sep 17 00:00:00 2001 From: Derick M <58572875+TurtIeSocks@users.noreply.github.com> Date: Mon, 5 Feb 2024 16:22:19 -0500 Subject: [PATCH] fix: show confirm switch if enabled --- src/components/layout/drawer/Extras.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/layout/drawer/Extras.jsx b/src/components/layout/drawer/Extras.jsx index 1553c65cb..925f440b8 100644 --- a/src/components/layout/drawer/Extras.jsx +++ b/src/components/layout/drawer/Extras.jsx @@ -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 ( - {hasConfirmed && ( + {(confirmedEnabled || hasConfirmed) && ( )} - {hasConfirmed ? ( + {confirmedEnabled || hasConfirmed ? (