login form back button goes to chooseaccount conditionally

zio/stable
Samuel Newman 2024-03-20 15:58:54 +00:00
parent 6d1307fdc7
commit a0839723ee
1 changed files with 3 additions and 1 deletions

View File

@ -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}
/>