File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ import { PowerUp } from '@components/popups/PowerUp'
3333import { NameTT } from '@components/popups/NameTT'
3434import { TimeStamp } from '@components/popups/TimeStamps'
3535import { useAnalytics } from '@hooks/useAnalytics'
36+ import { useGetAvailable } from '@hooks/useGetAvailable'
3637import { parseQuestConditions } from '@utils/parseConditions'
3738import { 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
You can’t perform that action at this time.
0 commit comments