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 Ledger Live use effect bug #701

Merged
merged 1 commit into from
Dec 15, 2023
Merged

Conversation

michalsmiarowski
Copy link
Contributor

Fix bug that was introduced in #655. The useRequestEthereumAccount hook that supposed to be used only in embed mode, was firing it's useEffect in the website where it set the empty account in the redux state. This prevented some functionality in the dApp to work properly. For example the Operator Mapping Card was not displayed when user connected the account on the Staking page.

The fix is adding isEmbed check for all useEffects related to ledger live app.

Fix bug that was introduced in a3352e0. The
`useRequestEthereumAccount` hook that supposed to be used only in embed mode,
was firing it's `useEffect` in the website where it set the empty account in the
redux state. This prevented some functionality in the dApp to work properly. For
example the Operator Mapping Card was not displayed when user connected the
account on the Staking page.

The fix is adding `isEmbed` check for all `useEffects` related to ledger live
app.
@michalsmiarowski michalsmiarowski self-assigned this Dec 14, 2023
@michalsmiarowski michalsmiarowski added this to the v1.14.0 milestone Dec 14, 2023
Copy link

@r-czajkowski r-czajkowski merged commit 17afd96 into main Dec 15, 2023
5 checks passed
@r-czajkowski r-czajkowski deleted the fix-ledger-live-use-effect-bug branch December 15, 2023 12:04
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