From 61f378e7a21fc6bece24a31fd6e402c6508bfa6c Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 16 Jul 2021 00:55:13 +0300 Subject: [PATCH] Auth: Strip phone number --- src/modules/actions/api/initial.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/actions/api/initial.ts b/src/modules/actions/api/initial.ts index 0eded6a3..28dd7e53 100644 --- a/src/modules/actions/api/initial.ts +++ b/src/modules/actions/api/initial.ts @@ -43,7 +43,7 @@ addReducer('initApi', (global: GlobalState, actions) => { addReducer('setAuthPhoneNumber', (global, actions, payload) => { const { phoneNumber } = payload!; - void callApi('provideAuthPhoneNumber', phoneNumber); + void callApi('provideAuthPhoneNumber', phoneNumber.replace(/[^\d]/g, '')); return { ...global,