Procházet zdrojové kódy

fix registration not working

master
Alex Cheung před 1 rokem
rodič
revize
74ec4c75d6
2 změnil soubory, kde provedl 4 přidání a 3 odebrání
  1. +1
    -1
      src/pages/authentication/auth-forms/BusCustomFormWizard.js
  2. +3
    -2
      src/pages/authentication/auth-forms/CustomFormWizard.js

+ 1
- 1
src/pages/authentication/auth-forms/BusCustomFormWizard.js Zobrazit soubor

@@ -323,7 +323,7 @@ const BusCustomFormWizard = (props) => {
const { handleSubmit } = useForm({})
const _onSubmit = () => {
setLoding(true);
values.address4 = selectedAddress4.key
values.address4 = selectedAddress4==null?"":selectedAddress4.key
values.address5 = selectedAddress5.key
// console.log(values)
const busUserAddress = {


+ 3
- 2
src/pages/authentication/auth-forms/CustomFormWizard.js Zobrazit soubor

@@ -89,7 +89,7 @@ const CustomFormWizard = (props) => {
const [selectedIdDocInputType, setSelectedIdDocInputType] = useState("");
// const [selectedIdDocLabel, setSelectedIdDocLabel] = useState(null);
const [selectedAddress4, setSelectedAddress4] = useState(null);
console.log(ComboData.country[0]);
// console.log(ComboData.country[0]);
const [selectedAddress5, setSelectedAddress5] = useState(ComboData.country[0]);
const [termsAndConAccept, setTermsAndConAccept] = useState(false);
const [termsAndConNotAccept, setTermsAndConNotAccept] = useState(false);
@@ -314,8 +314,9 @@ const CustomFormWizard = (props) => {
const _onSubmit = () => {
setLoding(true);
values.idDocType = selectedIdDocType.type
values.address4 = selectedAddress4.key
values.address4 = selectedAddress4==null?"":selectedAddress4.key
values.address5 = selectedAddress5.key
console.log(values)
const userAddress = {
"addressLine1": "",
"addressLine2": "",


Načítá se…
Zrušit
Uložit