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

Fix the usePoll is undefined #62

Merged
merged 1 commit into from
Sep 9, 2023

Conversation

omBratteng
Copy link
Contributor

I got the error message Cannot read properties of undefined (reading 'usePoll'), this fix uses optional chaining so if the object property does not exist, it will not fail.

This error can be reproduced by adding a TV device and then try to set the polling setting.

Related issue #59 where they also encountered the issue.

Copy link
Owner

@MaxvandeLaar MaxvandeLaar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⭐️ Looks good to me!

@MaxvandeLaar MaxvandeLaar merged commit 90bb499 into MaxvandeLaar:master Sep 9, 2023
@omBratteng omBratteng deleted the fix-usePoll branch September 9, 2023 22:23
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

Successfully merging this pull request may close these issues.

2 participants