Commit 027ca17f authored by hewenhao's avatar hewenhao

feat: fix bug

parent 434ea1a9
{
"name": "learn-math-weapp",
"version": "1.0.17",
"version": "1.1.0",
"private": true,
"description": "",
"scripts": {
......
......@@ -2,7 +2,7 @@
"miniprogramRoot": "dist/",
"projectname": "GeekLearnMathWeapp",
"description": "",
"appid": "wx693fe3460124d84b",
"appid": "wx8f25def587982a19",
"setting": {
"urlCheck": false,
"es6": false,
......
......@@ -10,7 +10,7 @@ import { View, Text, Image } from '@tarojs/components'
import Button from '@/components/Button'
import { useStoreState, useStoreActions } from '@/store/hooks'
import assets from '@/assets/oss/assets-pk'
import { StageStatus } from '@/api'
import { StageStatus, StageType } from '@/api'
import TopHeader from './components/top-header'
import PlayerDetails from './components/player-details'
......@@ -25,7 +25,7 @@ const Battles = () => {
const stageList = useStoreState(state => state.mainModel.stageList)
const hasPassed = useMemo(() => {
return stageList.findIndex(c => c.status === StageStatus.CURRENT) > 0
return stageList.findIndex(c => c.status === StageStatus.PASSED && c.type !== StageType.Special) !== -1
}, [stageList])
const fetchUserSummary = useStoreActions(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment