login form back button goes to chooseaccount conditionally
parent
6d1307fdc7
commit
a0839723ee
|
@ -106,7 +106,9 @@ export const Login = ({onPressBack}: {onPressBack: () => void}) => {
|
|||
initialHandle={initialHandle}
|
||||
setError={setError}
|
||||
setServiceUrl={setServiceUrl}
|
||||
onPressBack={onPressBack}
|
||||
onPressBack={() =>
|
||||
accounts.length ? gotoForm(Forms.ChooseAccount) : onPressBack()
|
||||
}
|
||||
onPressForgotPassword={onPressForgotPassword}
|
||||
onPressRetryConnect={refetchService}
|
||||
/>
|
||||
|
|
Loading…
Reference in New Issue