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

Add error when display type not passed to doNotify #30

Open
tzarebczan opened this issue May 23, 2018 · 1 comment
Open

Add error when display type not passed to doNotify #30

tzarebczan opened this issue May 23, 2018 · 1 comment
Labels
type: improvement Existing (or partially existing) functionality needs to be changed

Comments

@tzarebczan
Copy link
Contributor

The Issue

Per comments in lbryio/lbry-desktop#1493 (comment), we should add an error when the doNotify function does not contain all required parameters. If we don't, the notifications get queued up and other notifications don't show afterwards.

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

@tzarebczan tzarebczan added the type: improvement Existing (or partially existing) functionality needs to be changed label May 23, 2018
@jessopb
Copy link
Member

jessopb commented Sep 7, 2018

Agreed, I think my socialShare modal commit was good, but I cancelled it because my feature branch was behaving very strangely. The wallet

doNotify button (notification object which has no id) was matching to my MODALS.SOCIAL_SHARE constant which was also undefined causing it to run my component without the rest of its props, crashing the app.

Also, modalRouter checks to see if "notification" exists, but doesn't check to see if notification.id exists before the switch statement switches on 'id'.

@alyssaoc alyssaoc assigned alyssaoc and eukreign and unassigned alyssaoc Jan 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: improvement Existing (or partially existing) functionality needs to be changed
Projects
None yet
Development

No branches or pull requests

4 participants