-
Notifications
You must be signed in to change notification settings - Fork 158
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
[DEV][Playground] remove switch case in ToastManager return #2009
Conversation
displaySystemNotification={false} | ||
/>; | ||
default: | ||
return (<></>); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually, you change the logic of the component. If toastType is undefined for example the component will be render with <></>
(empty jsx tag) but in your change, you return undefined
and not a jsx tag
); | ||
default: | ||
return <></>; | ||
} | ||
} | ||
return undefined; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should not return undefined
but an empty jsx tag
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
No description provided.