login form back button goes to chooseaccount conditionally
This commit is contained in:
parent
6d1307fdc7
commit
a0839723ee
1 changed files with 3 additions and 1 deletions
|
@ -106,7 +106,9 @@ export const Login = ({onPressBack}: {onPressBack: () => void}) => {
|
||||||
initialHandle={initialHandle}
|
initialHandle={initialHandle}
|
||||||
setError={setError}
|
setError={setError}
|
||||||
setServiceUrl={setServiceUrl}
|
setServiceUrl={setServiceUrl}
|
||||||
onPressBack={onPressBack}
|
onPressBack={() =>
|
||||||
|
accounts.length ? gotoForm(Forms.ChooseAccount) : onPressBack()
|
||||||
|
}
|
||||||
onPressForgotPassword={onPressForgotPassword}
|
onPressForgotPassword={onPressForgotPassword}
|
||||||
onPressRetryConnect={refetchService}
|
onPressRetryConnect={refetchService}
|
||||||
/>
|
/>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue