Auth: Fix switching to QR code on mobiles

This commit is contained in:
Alexander Zinchuk 2021-07-02 11:36:53 +03:00
parent 7c9dc45a60
commit 22999a60e6

View File

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