Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: Disable "refresh balance" button for some time #156

Open
letehaha opened this issue Sep 24, 2022 · 0 comments
Open

feature: Disable "refresh balance" button for some time #156

letehaha opened this issue Sep 24, 2022 · 0 comments
Labels
priority-3-low repo: frontend Related to front-end type::enhancement New feature or request

Comments

@letehaha
Copy link
Owner

Since Monobank limits requests to once per minute, we need to disable the "Refresh balance" button after the first click.

  1. After the click, disable the button inside the component for 10 minutes and clear with setTimeout.
  2. After the click, set to LocalStorage "-monobank-next-allowed-refresh-timestamp" which will allow refreshing only in 10 mins. For the case when the user will re-login to other accounts.
  3. Handle 429 error code from API with error notification type.
@letehaha letehaha added type::enhancement New feature or request repo: frontend Related to front-end priority-3-low labels Sep 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low repo: frontend Related to front-end type::enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant