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: don't attempt casting enums to string #17

Closed
wants to merge 1 commit into from

Conversation

radmen
Copy link

@radmen radmen commented May 17, 2023

This will end up with a fatal error.

I extracted shouldFireEvent() method that will determine whether the event should be fired.
It will check the name for enums but won't fall back to other comparison methods.

This will end up with a fatal error. I extracted `shouldFireEvent()`
method that will determine whether the event should be fired.

For enums, it will check the name, but won't fallback to other
comparison methods.
@radmen
Copy link
Author

radmen commented May 17, 2023

Snap, this is a duplicate of #16 😅

@radmen radmen closed this May 17, 2023
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.

1 participant