hyperswitch-control-center
hyperswitch-control-center copied to clipboard
fix: unauthorised page issue
Type of Change
- [x] Bugfix
- [ ] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD
Description
Facing unauthorised page on switching the merchant and profile in the user page.This is due to because the screen state is not set to loading during the user role api is called. Now screen state is set to loading while calling the user roles api.
Motivation and Context
https://github.com/user-attachments/assets/50e9c504-f695-4b92-bb3c-7349be0aedfe
How did you test it?
unauthorised page shouldn't appear during org or merchant or profile switch.Check payment page
Where to test it?
- [ ] INTEG
- [ ] SANDBOX
- [ ] PROD
Checklist
- [ ] I ran
npm run re:build
- [ ] I reviewed submitted code
- [ ] I added unit tests for my changes where possible