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

fix(frontend): write error log instead of showing an error toast #4122

Merged
merged 5 commits into from
Jan 9, 2025

Conversation

BonomoAlessandro
Copy link
Collaborator

Motivation

If the wallet is loaded the application tries to determine if the logged in user is a vip user or not. This displays an error toast if the application is run locally because we do not run the rewards canister locally at the moment. Cause of this the e2e tests fail. As long as we do not run the rewards canister locally the error toast should not be displayed but an error log should be made.

Changes

  • replaces error toast with error log

Tests

before:

oisy-wallet-vip-error-toast-old.mp4

after:

oisy-wallet-vip-error-toast-new.mp4

@BonomoAlessandro BonomoAlessandro marked this pull request as ready for review January 8, 2025 10:17
@BonomoAlessandro BonomoAlessandro requested a review from a team as a code owner January 8, 2025 10:17
Copy link
Collaborator

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tks!

@BonomoAlessandro BonomoAlessandro merged commit ad7b03e into main Jan 9, 2025
21 checks passed
@BonomoAlessandro BonomoAlessandro deleted the fix(frontend)/removes-is-vip-error-toast branch January 9, 2025 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants