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

CustomChat warning with minimized attribute being a boolean #227

Open
isergeevv opened this issue Oct 4, 2023 · 0 comments
Open

CustomChat warning with minimized attribute being a boolean #227

isergeevv opened this issue Oct 4, 2023 · 0 comments

Comments

@isergeevv
Copy link

Hi.

Using [email protected] and [email protected], on initial page render i get this warning in console:

Warning: Received `true` for a non-boolean attribute `minimized`.

If you want to write it to the DOM, pass a string instead: minimized="true" or minimized={value.toString()}.

CustomChatComponent.tsx

'use client';

import { FacebookProvider, CustomChat } from 'react-facebook';

export default () => {
  return (
    <FacebookProvider appId={process.env.NEXT_PUBLIC_FB_CHAT_APP_ID} chatSupport>
      <CustomChat pageId={process.env.NEXT_PUBLIC_FB_CHAT_PAGE_ID} minimized={true} />
    </FacebookProvider>
  );
};

Component works fine it's just the warning.

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

1 participant