Commit 32858340 authored by hewenhao's avatar hewenhao

feat: 第二关如果是奖励关卡就不显示PK引导

parent 2699adf1
......@@ -155,7 +155,12 @@ const StageComp = (props: StageProps) => {
const updateGuideState = useStoreActions(state => state.guideModel.updateState)
const pkDetails = useStoreState(state => state.userModel.pkDetails)
const isSpecialRound = useMemo(() => {
return stage.type === StageType.Special
}, [stage])
const isPkGuideShow = useMemo(() => {
if (isSpecialRound) return false
const force = pkGuideStep === 2 && pkGuideActive && stage.$stageIndex === 1
if (force) {
return force
......@@ -164,11 +169,7 @@ const StageComp = (props: StageProps) => {
if (stage.$lastPassedStage) {
return showPkGuideFromHis
}
}, [pkGuideActive, pkGuideStep, stage, showPkGuideFromHis])
const isSpecialRound = useMemo(() => {
return stage.type === StageType.Special
}, [stage])
}, [pkGuideActive, pkGuideStep, stage, showPkGuideFromHis, isSpecialRound])
const handleClick = () => {
if (stage.status !== StageStatus.DISABLED || !isProduction) {
......
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