mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-03 10:07:55 +01:00
Auth: Fix switching to QR code on mobiles
This commit is contained in:
parent
7c9dc45a60
commit
22999a60e6
@ -35,6 +35,7 @@ const Auth: FC<StateProps & DispatchProps> = ({ authState, reset, initApi }) =>
|
||||
case 'authorizationStateWaitPhoneNumber':
|
||||
return <UiLoader page="authPhoneNumber" key="authPhoneNumber"><AuthPhoneNumber /></UiLoader>;
|
||||
case 'authorizationStateWaitQrCode':
|
||||
return <UiLoader page="authQrCode" key="authQrCode"><AuthQrCode /></UiLoader>;
|
||||
default:
|
||||
return PLATFORM_ENV === 'iOS' || PLATFORM_ENV === 'Android'
|
||||
? <UiLoader page="authPhoneNumber" key="authPhoneNumber"><AuthPhoneNumber /></UiLoader>
|
||||
|
Loading…
Reference in New Issue
Block a user