mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-04 18:50:31 +01:00
Auth: Strip phone number
This commit is contained in:
parent
27e5c31deb
commit
61f378e7a2
@ -43,7 +43,7 @@ addReducer('initApi', (global: GlobalState, actions) => {
|
|||||||
addReducer('setAuthPhoneNumber', (global, actions, payload) => {
|
addReducer('setAuthPhoneNumber', (global, actions, payload) => {
|
||||||
const { phoneNumber } = payload!;
|
const { phoneNumber } = payload!;
|
||||||
|
|
||||||
void callApi('provideAuthPhoneNumber', phoneNumber);
|
void callApi('provideAuthPhoneNumber', phoneNumber.replace(/[^\d]/g, ''));
|
||||||
|
|
||||||
return {
|
return {
|
||||||
...global,
|
...global,
|
||||||
|
Loading…
Reference in New Issue
Block a user