hyperswitch-web
hyperswitch-web copied to clipboard
fix: render gpay button when TrustPay script is loaded
Type of Change
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
The GPay button was rendered even when the TrustPay script was not loaded.
How did you test it?
https://github.com/user-attachments/assets/9847123b-e199-41fe-b6af-5906381dfd5c
https://github.com/user-attachments/assets/72661505-f2f8-4656-a91c-88f8916de145
Checklist
- [x] I ran
npm run re:build - [x] I reviewed submitted code
- [ ] I added unit tests for my changes where possible
🚫 Missing Linked Issue
Hi 👋 This pull request does not appear to be linked to any open issue yet.
Linking your PR to an issue helps keep the project tidy and ensures the issue is closed automatically.
✔️ How to fix this
- Add a keyword like
Fixes #123orCloses #456to your PR description or a commit message. - Or link it manually using the "Linked issues" panel in the PR sidebar.
✅ Tip: You can link multiple issues. 🚫 Note: If only one issue is linked, it must be open for this check to pass.
Once linked, this check will pass automatically on your next push or when you re-run the workflow.
Thanks for helping maintainers! 🙌