mirror of
https://github.com/Telecominfraproject/wlan-sdk-mobile-app.git
synced 2025-11-02 11:47:49 +00:00
Added in support for automatically going to the "BrandSelector" page if there is no brand found on sign in.
This commit is contained in:
@@ -17,6 +17,13 @@ export default class SignIn extends Component {
|
||||
this.passwordRef = React.createRef();
|
||||
}
|
||||
|
||||
componentDidMount() {
|
||||
// If the brand is not selected, then resort back to the brand selector
|
||||
if (useStore.getState().brandInfo === null) {
|
||||
this.props.navigation.replace('BrandSelector');
|
||||
}
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View style={pageStyle.container}>
|
||||
|
||||
Reference in New Issue
Block a user