Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set user info not working #31

Open
nusjose opened this issue Jun 15, 2023 · 2 comments
Open

set user info not working #31

nusjose opened this issue Jun 15, 2023 · 2 comments

Comments

@nusjose
Copy link

nusjose commented Jun 15, 2023

I pass user prop to ChatWootWidget, but it doesn't work. I still have to fill out the email in the form to start the conversation
simulator_screenshot_4F2E0453-D93B-41AF-9601-037B0B79275B

My code

<ChatWootWidget
      websiteToken={websiteToken}
      locale={locale}
      baseUrl={baseUrl}
      closeModal={() => navigation.goBack()}
      isModalVisible={true}
      user={{
      identifier: userInfo.email,
      name: `${userInfo.name} ${userInfo.firstName}`,
      avatar_url: '',
      email: userInfo.email,
      identifier_hash: 'xGNUWSCzHdMEmDrNm9CNoiGF',
    }}
      customAttributes={customAttributes}
      colorScheme={colorScheme}
      
    />
@desperado1802
Copy link

Hi @nusjose and anyone who is having the same issue. Most likely it is caused by the identifier_hash, if it has value causes some kind of re-render and no value is shown on ChatWoot side. Explained here: #35 (comment). Temporary solution for me is not assigning any value to identifier_hash . If it's a must to add it, then use customAttributes for that

@praisedavid787
Copy link

Hi @nusjose and anyone who is having the same issue. Most likely it is caused by the identifier_hash, if it has value causes some kind of re-render and no value is shown on ChatWoot side. Explained here: #35 (comment). Temporary solution for me is not assigning any value to identifier_hash . If it's a must to add it, then use customAttributes for that

This fixed it for me 👍🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants