Hi everyone ! I get this code error using the following code :
let emailValue = $w('#email').value
let passwordValue = $w('#password').value
let firstNameValue = $w('#firstName').value
let lastNameValue = $w('#lastName').value
let phonesValue = [$w('#phone').value]
let addressValue = $w('#address').value + ", " + $w('#city').value + ", " + $w('#province').value + ", " + $w('#postalCode').value
let vehicle = car.toString()
await wixUsers.register(emailValue, passwordValue, {
contactInfo: {
"firstName": firstNameValue,
"lastName": lastNameValue,
"phones": phonesValue,
"address": addressValue,
"car": vehicle
}
//ERROR : Type '{ firstName: string; lastName: string; phones: string[]; address: string; car: string; }' is not assignable to type 'ContactInfo'. Object literal may only specify known properties, and '"address"' does not exist in type 'ContactInfo'. It’s recommended you use a new variable, such as "let newVar = ..." to make sure that all code completion work correctly.
I would be realy glad to know what is wrong here
Thank you !