|
@@ -26,6 +26,7 @@ export default function ChooseScenario() {
|
|
|
const [selected, setSelected] = useState(0);
|
|
const [selected, setSelected] = useState(0);
|
|
|
const ring = useSelector((state: any) => state.ring);
|
|
const ring = useSelector((state: any) => state.ring);
|
|
|
const { t } = useTranslation();
|
|
const { t } = useTranslation();
|
|
|
|
|
+ const [count,setCount] = useState(0)
|
|
|
const dispatch = useDispatch();
|
|
const dispatch = useDispatch();
|
|
|
var navigation: any = null
|
|
var navigation: any = null
|
|
|
|
|
|
|
@@ -63,6 +64,7 @@ export default function ChooseScenario() {
|
|
|
}, [])
|
|
}, [])
|
|
|
|
|
|
|
|
useDidShow(() => {
|
|
useDidShow(() => {
|
|
|
|
|
+ setCount(count=>count+1)
|
|
|
dispatch(updateStep({ step: 0 }))
|
|
dispatch(updateStep({ step: 0 }))
|
|
|
dispatch(chooseMode({ isMixed: selected == 1 }))
|
|
dispatch(chooseMode({ isMixed: selected == 1 }))
|
|
|
})
|
|
})
|