login form back button goes to chooseaccount conditionally
This commit is contained in:
@@ -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}
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user