hyperswitch-web
hyperswitch-web copied to clipboard
refactor: use shared country/state list instead of S3 + local backups
Type of Change
- [ ] Bugfix
- [ ] New feature
- [ ] Enhancement
- [x] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
This PR refactors the handling of country and state data by removing the S3 fetch logic and local backup variables, and instead directly using the shared code that already provides the complete list. This simplifies the implementation, reduces redundant code, and ensures a single source of truth for country and state information across the codebase.
How did you test it?
I tested it by removing the dynamic fields and adding custom values for billing.
Checklist
- [x] I ran
npm run re:build - [x] I reviewed submitted code
- [ ] I added unit tests for my changes where possible
Changed Files
| File | Status |
|---|---|
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |
| Unsupported file format | |