Skip to content

Commit 47db2f1

Browse files
committed
fix: properly check hasConfirmed
1 parent 18582f1 commit 47db2f1

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/features/pokestop/PokestopPopup.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { PowerUp } from '@components/popups/PowerUp'
3333
import { NameTT } from '@components/popups/NameTT'
3434
import { TimeStamp } from '@components/popups/TimeStamps'
3535
import { useAnalytics } from '@hooks/useAnalytics'
36+
import { useGetAvailable } from '@hooks/useGetAvailable'
3637
import { parseQuestConditions } from '@utils/parseConditions'
3738
import { Img } from '@components/Img'
3839

@@ -329,11 +330,10 @@ const MenuActions = ({
329330
invasions,
330331
}) => {
331332
const { t } = useTranslation()
332-
const [masterfile, hasConfirmed] = useMemory((s) => [
333-
s.masterfile,
334-
s.available.pokestops.some((x) => x.startsWith('a')),
335-
])
333+
const masterfile = useMemory((s) => s.masterfile)
336334
const filters = useStorage((s) => s.filters)
335+
const { available } = useGetAvailable('pokestops')
336+
const hasConfirmed = available.some((x) => x.startsWith('a'))
337337

338338
const [anchorEl, setAnchorEl] = React.useState(false)
339339

0 commit comments

Comments
 (0)