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

Resolved toaster display on unrelated accounts #5461

Merged
merged 6 commits into from
Nov 17, 2023

Conversation

ikem-legend
Copy link
Member

What was the problem?

This PR resolves #5448

How was it solved?

  • Dismissed toaster after current account is switched

How was it tested?

  • Manually

@ikem-legend ikem-legend self-assigned this Nov 17, 2023
Copy link
Contributor

@ManuGowda ManuGowda left a comment

Choose a reason for hiding this comment

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

Toaster shown for an account that doesn't have an claim rewards.

STR

  • Ensure you have an account on mainchain with claim rewards
  • Switch to sidechain with same account, observe the toaster
    Screenshot 2023-11-17 at 10 37 54 AM

@ikem-legend
Copy link
Member Author

Toaster shown for an account that doesn't have an claim rewards.

STR

  • Ensure you have an account on mainchain with claim rewards
  • Switch to sidechain with same account, observe the toaster
    Screenshot 2023-11-17 at 10 37 54 AM

Good catch. I've fixed it for application switch as well as network switch

ManuGowda
ManuGowda previously approved these changes Nov 17, 2023
@@ -65,7 +71,10 @@ export function useCurrentAccount() {
}
}
}
// Remove toast between account switches
toast.dismiss();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the only real change in this file? Others are formatting? Just want to know because i will get merge conflict on this file if this PR is merged before my PR

Copy link
Member Author

@ikem-legend ikem-legend Nov 17, 2023

Choose a reason for hiding this comment

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

Yeah, they're formatting changes and some of them are enforced by our pre commit hooks

@ManuGowda ManuGowda merged commit 5e35f80 into release/3.0.0 Nov 17, 2023
3 checks passed
@ManuGowda ManuGowda deleted the 5448-claims-rewards-toaster-ux branch November 17, 2023 13:02
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.

3 participants