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: mark customEventHandlers as optional #138

Merged
merged 1 commit into from
Jul 11, 2024

Conversation

CristianDeluxe
Copy link
Contributor

Description

Sorry, my PR above generates a new error as we define a default value for customEventHandlers but at the same time it is marked as required.

Since it has a default value it does not need to be required.

So the error is easily fixed

Related error:

Warning: Failed prop type: The prop `customEventHandlers` is marked as required in `AdvertisingSlot`, but its value is `undefined`.
    at AdvertisingSlot (/node_modules/react-advertising/lib/components/AdvertisingSlot.js:37:17)

@CristianDeluxe CristianDeluxe requested a review from a team as a code owner July 10, 2024 21:16
@CristianDeluxe CristianDeluxe requested review from makandz and jdw1996 and removed request for a team July 10, 2024 21:16
Copy link
Contributor

@caffeinated-pixels caffeinated-pixels left a comment

Choose a reason for hiding this comment

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

Good catch, thanks!

@caffeinated-pixels caffeinated-pixels changed the title fix: Mark customEventHandlers as optional fix: mark customEventHandlers as optional Jul 11, 2024
@caffeinated-pixels caffeinated-pixels merged commit 0f4589c into KijijiCA:master Jul 11, 2024
3 checks passed
thedaviddias pushed a commit that referenced this pull request Jul 11, 2024
## [4.2.13](v4.2.12...v4.2.13) (2024-07-11)

### Bug Fixes

* mark customEventHandlers as optional ([#138](#138)) ([0f4589c](0f4589c))
@thedaviddias
Copy link
Member

🎉 This PR is included in version 4.2.13 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants