Skip to content

Feature/fix button options overwriting bug#204

Merged
thinkjrs merged 6 commits intodevelopfrom
feature/fix-button-options-overwriting-bug
Feb 19, 2024
Merged

Feature/fix button options overwriting bug#204
thinkjrs merged 6 commits intodevelopfrom
feature/fix-button-options-overwriting-bug

Conversation

@thinkjrs
Copy link
Member

@thinkjrs thinkjrs commented Feb 19, 2024

This closes #203 by fixing the order of the call to Object.merge in the utils.ts::getOptions function.

It also refactors the use of this in the main button by extracting that infra into a React hook.


@thinkjrs thinkjrs added bug Something isn't working enhancement New feature or request labels Feb 19, 2024
@thinkjrs thinkjrs self-assigned this Feb 19, 2024
@github-actions
Copy link

size-limit report 📦

Path Size
dist/promo-button.cjs.production.min.js 49.19 KB (+0.2% 🔺)
dist/promo-button.esm.js 51.96 KB (+0.13% 🔺)

@thinkjrs thinkjrs merged commit 203f192 into develop Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐞 [BUG]: defaultOptions for howItWorks content are not being overridden

1 participant