Latest changes
This commit is contained in:
@@ -78,6 +78,10 @@ function TrainingView(props) {
|
||||
props.navigation.navigate('Home');
|
||||
};
|
||||
|
||||
if(props.connState != ConnState.CONNECTED_RUNNING) {
|
||||
props.navigation.gotBack();
|
||||
}
|
||||
|
||||
return (
|
||||
<View style={{ flex: 1 }}>
|
||||
<StatusBar hidden={true} />
|
||||
@@ -113,6 +117,7 @@ const trainingViewStyles = StyleSheet.create({
|
||||
|
||||
const mapStateToProps = (state) => {
|
||||
return {
|
||||
connState: state.connState,
|
||||
session: state.deviceState,
|
||||
peaksPerLap: state.settings.analysis.peaksPerLap,
|
||||
theme: state.settings.theme,
|
||||
|
||||
Reference in New Issue
Block a user