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…
x
Reference in New Issue
Block a user