hyperswitch-web
hyperswitch-web copied to clipboard
fix: samsungpay script mount condition correction
Type of Change
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
The Samsung Pay script should be mounted only when Samsung Pay is present and the script is not already mounted. Previously, we only checked whether it was mounted.
How did you test it?
I tested by running it in demo store.
Checklist
- [x] I ran
npm run re:build - [x] I reviewed submitted code
- [ ] I added unit tests for my changes where possible
Closing this PR will discuss more on priority how can we improve this