diff --git a/src/features/Register/components/RegistrationStep/config.tsx b/src/features/Register/components/RegistrationStep/config.tsx
index 104eeef1..4dc1de27 100644
--- a/src/features/Register/components/RegistrationStep/config.tsx
+++ b/src/features/Register/components/RegistrationStep/config.tsx
@@ -9,4 +9,5 @@ export const formIds = {
password: 'password',
phone: 'phone',
postalCode: 'postalCode',
+ region: 'region',
}
diff --git a/src/features/Register/components/RegistrationStep/hooks/useForm.tsx b/src/features/Register/components/RegistrationStep/hooks/useForm.tsx
index ca30fceb..94f64dcf 100644
--- a/src/features/Register/components/RegistrationStep/hooks/useForm.tsx
+++ b/src/features/Register/components/RegistrationStep/hooks/useForm.tsx
@@ -69,6 +69,7 @@ export const useForm = () => {
const email = readFieldValue(formIds.email)
const password = readFieldValue(formIds.password)
const postalCode = Number(readFieldValue(formIds.postalCode))
+ const region = readFieldValue(formIds.region)
const address1 = readFieldValue(formIds.address1)
const address2 = readFieldValue(formIds.address2)
@@ -84,6 +85,7 @@ export const useForm = () => {
password,
phone,
postalCode,
+ region,
}).then(goToLoginPage, showError)
}
}
diff --git a/src/features/Register/components/RegistrationStep/index.tsx b/src/features/Register/components/RegistrationStep/index.tsx
index 9d1f6bde..61062fe9 100644
--- a/src/features/Register/components/RegistrationStep/index.tsx
+++ b/src/features/Register/components/RegistrationStep/index.tsx
@@ -99,6 +99,12 @@ export const RegistrationStep = () => {
label='Почтовый адрес'
pattern={postalCodeRegex}
/>
+
{
const config = {
body: {
@@ -54,6 +56,7 @@ export const register = async ({
_p_password: password,
_p_phone: phone,
_p_postal_code: postalCode,
+ _p_region: region,
},
proc,
},