ordering-ui-react-native 0.23.36 → 0.23.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ import {
|
|
|
37
37
|
WrapperActions
|
|
38
38
|
} from './styles'
|
|
39
39
|
|
|
40
|
+
const CONDITIONAL_CODES = [1787]
|
|
40
41
|
const TIME_COUNTDOWN = 60 * 10 // 10 minutes
|
|
41
42
|
|
|
42
43
|
const UserDetails = (props: any) => {
|
|
@@ -176,9 +177,18 @@ const UserVerificationUI = (props: any) => {
|
|
|
176
177
|
setTimer(`${TIME_COUNTDOWN / 60}:00`)
|
|
177
178
|
setIsSendCodeAgain(true)
|
|
178
179
|
if (opt === 'phone') {
|
|
180
|
+
let cellphone = phoneState?.cellphone
|
|
181
|
+
let country_phone_code = phoneState?.country_phone_code
|
|
182
|
+
|
|
183
|
+
if (CONDITIONAL_CODES.includes(Number(country_phone_code))) {
|
|
184
|
+
if (Number(country_phone_code) === 1787) {
|
|
185
|
+
cellphone = `787${cellphone}`
|
|
186
|
+
country_phone_code = '1'
|
|
187
|
+
}
|
|
188
|
+
}
|
|
179
189
|
sendVerifyPhoneCode({
|
|
180
|
-
cellphone
|
|
181
|
-
country_phone_code
|
|
190
|
+
cellphone,
|
|
191
|
+
country_phone_code
|
|
182
192
|
})
|
|
183
193
|
return
|
|
184
194
|
}
|